Namespace TypeScript

AmdDependencyApplicableRefactorInfoApplyCodeActionCommandResultArrayBindingPatternArrayDestructuringAssignmentArrayLiteralExpressionArrayTypeNodeArrowFunctionAsExpressionAssertClauseAssertEntryAssertsIdentifierTypePredicateAssertsThisTypePredicateAssignmentExpressionAwaitExpressionBigIntLiteralBigIntLiteralTypeBinaryExpressionBindingElementBlockBreakStatementBuildInvalidedProjectBuildOptionsBuilderProgramBuilderProgramHostBundleCallChainCallExpressionCallHierarchyIncomingCallCallHierarchyItemCallHierarchyOutgoingCallCallSignatureDeclarationCancellationTokenCaseBlockCaseClauseCatchClauseCheckJsDirectiveClassDeclarationClassElementClassExpressionClassLikeDeclarationBaseClassStaticBlockDeclarationClassificationInfoClassificationResultClassificationsClassifiedSpanClassifiedSpan2020ClassifierCodeActionCodeFixActionCollectionCombinedCodeActionsCombinedCodeFixScopeCommaListExpressionCommentRangeCompilerHostCompilerOptionsCompletionEntryCompletionEntryDataAutoImportCompletionEntryDataResolvedCompletionEntryDataUnresolvedCompletionEntryDetailsCompletionInfoComputedPropertyNameConditionalExpressionConditionalRootConditionalTypeConditionalTypeNodeConfigFileDiagnosticsReporterConstructSignatureDeclarationConstructorDeclarationConstructorTypeNodeContinueStatementCoreTransformationContextCreateProgramOptionsCustomTransformerCustomTransformersDebuggerStatementDeclarationDeclarationStatementDecoratorDefaultClauseDeferredTypeReferenceDefinitionInfoDefinitionInfoAndBoundSpanDeleteExpressionDiagnosticDiagnosticMessageDiagnosticMessageChainDiagnosticRelatedInformationDiagnosticWithLocationDoStatementDocCommentTemplateOptionsDocumentHighlightsDocumentRegistryDocumentSpanESMapEditorOptionsEditorSettingsElementAccessChainElementAccessExpressionEmitAndSemanticDiagnosticsBuilderProgramEmitHelperBaseEmitOutputEmitResultEmptyStatementEnumDeclarationEnumMemberEnumTypeEvolvingArrayTypeExportAssignmentExportDeclarationExportSpecifierExpressionExpressionStatementExpressionWithTypeArgumentsExtendedConfigCacheEntryExternalModuleReferenceFalseLiteralFileExtensionInfoFileReferenceFileTextChangesFileWatcherFlowArrayMutationFlowAssignmentFlowCallFlowConditionFlowLabelFlowNodeBaseFlowReduceLabelFlowStartFlowSwitchClauseForInStatementForOfStatementForStatementFormatCodeOptionsFormatCodeSettingsFormatDiagnosticsHostFunctionDeclarationFunctionExpressionFunctionLikeDeclarationBaseFunctionOrConstructorTypeNodeBaseFunctionTypeNodeGenericTypeGetAccessorDeclarationGetCompletionsAtPositionOptionsGetEffectiveTypeRootsHostHeritageClauseHighlightSpanHostCancellationTokenIScriptSnapshotIdentifierIdentifierTypePredicateIfStatementImplementationLocationImportCallImportClauseImportDeclarationImportEqualsDeclarationImportExpressionImportSpecifierImportTypeNodeIncompleteCompletionsCacheIncompleteTypeIncrementalProgramOptionsIndexInfoIndexSignatureDeclarationIndexTypeIndexedAccessTypeIndexedAccessTypeNodeInferTypeNodeInlayHintInlayHintsContextInlayHintsOptionsInputFilesInstallPackageActionInstallPackageOptionsInstantiableTypeInterfaceDeclarationInterfaceTypeInterfaceTypeWithDeclaredMembersIntersectionTypeIntersectionTypeNodeInvalidatedProjectBaseIterationStatementIteratorJSDocJSDocAllTypeJSDocAugmentsTagJSDocAuthorTagJSDocCallbackTagJSDocClassTagJSDocContainerJSDocDeprecatedTagJSDocEnumTagJSDocFunctionTypeJSDocImplementsTagJSDocLinkJSDocLinkCodeJSDocLinkDisplayPartJSDocLinkPlainJSDocMemberNameJSDocNameReferenceJSDocNamepathTypeJSDocNamespaceDeclarationJSDocNonNullableTypeJSDocNullableTypeJSDocOptionalTypeJSDocOverrideTagJSDocParameterTagJSDocPrivateTagJSDocPropertyLikeTagJSDocPropertyTagJSDocProtectedTagJSDocPublicTagJSDocReadonlyTagJSDocReturnTagJSDocSeeTagJSDocSignatureJSDocTagJSDocTagInfoJSDocTemplateTagJSDocTextJSDocThisTagJSDocTypeJSDocTypeExpressionJSDocTypeLiteralJSDocTypeTagJSDocTypedefTagJSDocUnknownTagJSDocUnknownTypeJSDocVariadicTypeJsonMinusNumericLiteralJsonObjectExpressionStatementJsonSourceFileJsxAttributeJsxAttributesJsxClosingElementJsxClosingFragmentJsxClosingTagInfoJsxElementJsxExpressionJsxFragmentJsxOpeningElementJsxOpeningFragmentJsxSelfClosingElementJsxSpreadAttributeJsxTagNamePropertyAccessJsxTextKeywordTokenKeywordTypeNodeLabeledStatementLanguageServiceLanguageServiceHostLeftHandSideExpressionLineAndCharacterLiteralExpressionLiteralLikeNodeLiteralTypeLiteralTypeNodeMapMapLikeMappedTypeNodeMemberExpressionMetaPropertyMethodDeclarationMethodSignatureMissingDeclarationModeAwareCacheModifierTokenModuleBlockModuleDeclarationModuleResolutionCacheModuleResolutionHostNamedDeclarationNamedExportsNamedImportsNamedTupleMemberNamespaceDeclarationNamespaceExportNamespaceExportDeclarationNamespaceImportNavigateToItemNavigationBarItemNavigationTreeNewExpressionNoSubstitutionTemplateLiteralNodeNodeArrayNodeFactoryNodeVisitorNodeWithTypeArgumentsNodesVisitorNonNullChainNonNullExpressionNonRelativeModuleNameResolutionCacheNotEmittedStatementNullLiteralNumberLiteralTypeNumericLiteralObjectBindingPatternObjectDestructuringAssignmentObjectLiteralElementObjectLiteralExpressionObjectLiteralExpressionBaseObjectTypeOmittedExpressionOptionalTypeNodeOrganizeImportsArgsOutliningSpanOutputFilePackageIdPackageJsonInfoCacheParameterDeclarationParenthesizedExpressionParenthesizedTypeNodeParseConfigFileHostParseConfigHostParsedCommandLineParsedTsconfigPartiallyEmittedExpressionPerDirectoryResolutionCachePerModuleNameCachePerformanceEventPluginImportPostfixUnaryExpressionPreProcessedFileInfoPrefixUnaryExpressionPrimaryExpressionPrintHandlersPrinterPrinterOptionsPrivateIdentifierProgramProgramHostProjectReferencePropertyAccessChainPropertyAccessEntityNameExpressionPropertyAccessExpressionPropertyAssignmentPropertyDeclarationPropertyLikeDeclarationPropertySignaturePseudoBigIntPunctuationTokenPushQualifiedNameQuickInfoReadBuildProgramHostReadonlyCollectionReadonlyESMapReadonlyMapReadonlySetReadonlyTextRangeReadonlyUnderscoreEscapedMapRefactorActionInfoRefactorEditInfoReferenceEntryReferencedSymbolReferencedSymbolDefinitionInfoRegularExpressionLiteralRenameInfoFailureRenameInfoOptionsRenameInfoSuccessRenameLocationResolveProjectReferencePathHostResolvedModuleResolvedModuleFullResolvedModuleWithFailedLookupLocationsResolvedProjectReferenceResolvedTypeReferenceDirectiveResolvedTypeReferenceDirectiveWithFailedLookupLocationsRestTypeNodeReturnStatementScannerScopedEmitHelperScriptReferenceHostSelectionRangeSemanticDiagnosticsBuilderProgramSemicolonClassElementSetSetAccessorDeclarationShorthandPropertyAssignmentSignatureSignatureDeclarationBaseSignatureHelpCharacterTypedReasonSignatureHelpInvokedReasonSignatureHelpItemSignatureHelpItemsSignatureHelpItemsOptionsSignatureHelpParameterSignatureHelpRetriggeredReasonSolutionBuilderSolutionBuilderHostSolutionBuilderHostBaseSolutionBuilderWithWatchHostSortedArraySortedReadonlyArraySourceFileSourceFileLikeSourceMapRangeSourceMapSourceSourceMapSpanSpreadAssignmentSpreadElementStatementStringLiteralStringLiteralTypeStringMappingTypeSubstitutionTypeSuperCallSuperElementAccessExpressionSuperExpressionSuperPropertyAccessExpressionSwitchStatementSymbolSymbolDisplayPartSyntaxListSynthesizedCommentSyntheticExpressionSystemTaggedTemplateExpressionTemplateExpressionTemplateHeadTemplateLiteralLikeNodeTemplateLiteralTypeTemplateLiteralTypeNodeTemplateLiteralTypeSpanTemplateMiddleTemplateSpanTemplateTailTextChangeTextChangeRangeTextInsertionTextRangeTextSpanThisExpressionThisTypeNodeThisTypePredicateThrowStatementTodoCommentTodoCommentDescriptorTokenTransformationContextTransformationResultTransientIdentifierTranspileOptionsTranspileOutputTrueLiteralTryStatementTsConfigSourceFileTupleTypeTupleTypeNodeTupleTypeReferenceTypeTypeAcquisitionTypeAliasDeclarationTypeAssertionTypeCheckerTypeElementTypeLiteralNodeTypeNodeTypeOfExpressionTypeOperatorNodeTypeParameterTypeParameterDeclarationTypePredicateBaseTypePredicateNodeTypeQueryNodeTypeReferenceTypeReferenceDirectiveResolutionCacheTypeReferenceNodeUnaryExpressionUnderscoreEscapedMapUnionOrIntersectionTypeUnionTypeUnionTypeNodeUniqueESSymbolTypeUnparsedPrependUnparsedPrologueUnparsedSectionUnparsedSourceUnparsedSyntheticReferenceUnparsedTextLikeUnscopedEmitHelperUpdateBundleProjectUpdateExpressionUpdateOutputFileStampsProjectUserPreferencesVariableDeclarationVariableDeclarationListVariableStatementVoidExpressionWatchWatchCompilerHostWatchCompilerHostOfConfigFileWatchCompilerHostOfFilesAndCompilerOptionsWatchHostWatchOfConfigFileWatchOfFilesAndCompilerOptionsWatchOptionsWhileStatementWithStatementYieldExpression
AbstractKeywordAccessExpressionAccessibilityModifierAccessorDeclarationAdditiveOperatorAdditiveOperatorOrHigherAffectedFileResultArrayBindingElementArrayBindingOrAssignmentElementArrayBindingOrAssignmentPatternAssertKeywordAssertionExpressionAssertionKeyAssertsKeywordAssertsTokenAssignmentOperatorAssignmentOperatorOrHigherAssignmentOperatorTokenAssignmentPatternAsteriskTokenAsyncKeywordAwaitKeywordAwaitKeywordTokenBaseTypeBinaryOperatorBinaryOperatorTokenBindingNameBindingOrAssignmentElementBindingOrAssignmentElementRestIndicatorBindingOrAssignmentElementTargetBindingOrAssignmentPatternBindingPatternBitwiseOperatorBitwiseOperatorOrHigherBlockLikeBooleanLiteralBreakOrContinueStatementCallLikeExpressionCaseOrDefaultClauseClassLikeDeclarationClassMemberModifierCodeActionCommandColonTokenCommentKindCompilerOptionsValueCompletionEntryDataCompletionsTriggerCharacterCompoundAssignmentOperatorConciseBodyConstKeywordCreateProgramCustomTransformerFactoryDeclarationNameDeclarationWithTypeParameterChildrenDeclarationWithTypeParametersDeclareKeywordDefaultKeywordDestructuringAssignmentDestructuringPatternDiagnosticReporterDirectoryWatcherCallbackDocumentRegistryBucketKeyDotDotDotTokenDotTokenEmitHelperEmitHelperUniqueNameCallbackEndOfFileTokenEntityNameEntityNameExpressionEntityNameOrEntityNameExpressionEqualityOperatorEqualityOperatorOrHigherEqualsGreaterThanTokenEqualsTokenErrorCallbackExclamationTokenExponentiationOperatorExportKeywordFileWatcherCallbackFlowNodeFlowTypeForInOrOfStatementForInitializerFunctionBodyFunctionLikeFunctionLikeDeclarationFunctionOrConstructorTypeNodeHasExpressionInitializerHasInitializerHasJSDocHasTypeHasTypeArgumentsImportOrExportSpecifierIncrementExpressionInvalidatedProjectJSDocCommentJSDocNamespaceBodyJSDocSyntaxKindJSDocTypeReferencingNodeJsFileExtensionInfoJsonObjectExpressionJsxAttributeLikeJsxChildJsxOpeningLikeElementJsxTagNameExpressionJsxTokenSyntaxKindKeywordSyntaxKindKeywordTypeSyntaxKindLiteralSyntaxKindLiteralTokenLogicalOperatorLogicalOperatorOrHigherLogicalOrCoalescingAssignmentOperatorMemberNameMinusTokenModifierModifierSyntaxKindModifiersArrayModuleBodyModuleNameModuleReferenceMultiplicativeOperatorMultiplicativeOperatorOrHigherNamedExportBindingsNamedImportBindingsNamedImportsOrExportsNamespaceBodyObjectBindingOrAssignmentElementObjectBindingOrAssignmentPatternObjectLiteralElementLikeObjectTypeDeclarationOptionalChainOverrideKeywordParameterPropertyDeclarationParameterPropertyModifierPathPlusTokenPostfixUnaryOperatorPrefixUnaryOperatorPrivateKeywordPropertyNamePropertyNameLiteralProtectedKeywordPseudoLiteralSyntaxKindPseudoLiteralTokenPublicKeywordPunctuationSyntaxKindQuestionDotTokenQuestionTokenReadonlyKeywordReadonlyTokenRefactorTriggerReasonRelationalOperatorRelationalOperatorOrHigherRenameInfoReportEmitErrorSummaryResolvedConfigFileNameShiftOperatorShiftOperatorOrHigherSignatureDeclarationSignatureHelpRetriggerCharacterSignatureHelpTriggerCharacterSignatureHelpTriggerReasonStaticKeywordStringLiteralLikeStructuredTypeSuperPropertySymbolTableTemplateLiteralTemplateLiteralTokenTokenSyntaxKindTransformerTransformerFactoryTriviaSyntaxKindTypeOfTagTypeOnlyAliasDeclarationTypeOnlyCompatibleAliasDeclarationTypePredicateTypeReferenceTypeTypeVariableUnionOrIntersectionTypeNodeUnparsedNodeUnparsedSourceTextVariableLikeDeclarationVisitResultVisitorWatchStatusReporterWithMetadataWriteFileCallback__String
addEmitHelperaddEmitHelpersaddSyntheticLeadingCommentaddSyntheticTrailingCommentclassicNameResolvercollapseTextChangeRangesAcrossMultipleVersionsconvertCompilerOptionsFromJsonconvertToObjectconvertTypeAcquisitionFromJsoncouldStartTriviacreateAbstractBuildercreateAddcreateArrayBindingPatterncreateArrayLiteralcreateArrayTypeNodecreateArrowFunctioncreateAsExpressioncreateAssignmentcreateAwaitcreateBigIntLiteralcreateBinarycreateBindingElementcreateBlockcreateBreakcreateBuilderStatusReportercreateBundlecreateCallcreateCallChaincreateCallSignaturecreateCaseBlockcreateCaseClausecreateCatchClausecreateClassDeclarationcreateClassExpressioncreateClassifiercreateCommacreateCommaListcreateCompilerHostcreateComputedPropertyNamecreateConditionalcreateConditionalTypeNodecreateConstructSignaturecreateConstructorcreateConstructorTypeNodecreateContinuecreateDebuggerStatementcreateDecoratorcreateDefaultClausecreateDeletecreateDocreateDocumentRegistrycreateElementAccesscreateElementAccessChaincreateEmitAndSemanticDiagnosticsBuilderProgramcreateEmptyStatementcreateEnumDeclarationcreateEnumMembercreateExportAssignmentcreateExportDeclarationcreateExportDefaultcreateExportSpecifiercreateExpressionStatementcreateExpressionWithTypeArgumentscreateExternalModuleExportcreateExternalModuleReferencecreateFalsecreateFileLevelUniqueNamecreateForcreateForIncreateForOfcreateFunctionDeclarationcreateFunctionExpressioncreateFunctionTypeNodecreateGetAccessorcreateHeritageClausecreateIdentifiercreateIfcreateImmediatelyInvokedArrowFunctioncreateImmediatelyInvokedFunctionExpressioncreateImportClausecreateImportDeclarationcreateImportEqualsDeclarationcreateImportSpecifiercreateImportTypeNodecreateIncrementalCompilerHostcreateIncrementalProgramcreateIndexSignaturecreateIndexedAccessTypeNodecreateInferTypeNodecreateInputFilescreateInterfaceDeclarationcreateIntersectionTypeNodecreateJSDocAugmentsTagcreateJSDocAuthorTagcreateJSDocCallbackTagcreateJSDocClassTagcreateJSDocCommentcreateJSDocEnumTagcreateJSDocImplementsTagcreateJSDocParamTagcreateJSDocParameterTagcreateJSDocPrivateTagcreateJSDocPropertyTagcreateJSDocProtectedTagcreateJSDocPublicTagcreateJSDocReadonlyTagcreateJSDocReturnTagcreateJSDocSignaturecreateJSDocTagcreateJSDocTemplateTagcreateJSDocThisTagcreateJSDocTypeExpressioncreateJSDocTypeLiteralcreateJSDocTypeTagcreateJSDocTypedefTagcreateJsxAttributecreateJsxAttributescreateJsxClosingElementcreateJsxElementcreateJsxExpressioncreateJsxFragmentcreateJsxJsxClosingFragmentcreateJsxOpeningElementcreateJsxOpeningFragmentcreateJsxSelfClosingElementcreateJsxSpreadAttributecreateJsxTextcreateKeywordTypeNodecreateLabelcreateLanguageServicecreateLanguageServiceSourceFilecreateLessThancreateLiteralcreateLiteralTypeNodecreateLogicalAndcreateLogicalNotcreateLogicalOrcreateLoopVariablecreateMappedTypeNodecreateMetaPropertycreateMethodcreateMethodSignaturecreateModifiercreateModifiersFromModifierFlagscreateModuleBlockcreateModuleDeclarationcreateModuleResolutionCachecreateNamedExportscreateNamedImportscreateNamespaceExportcreateNamespaceExportDeclarationcreateNamespaceImportcreateNewcreateNoSubstitutionTemplateLiteralcreateNodecreateNodeArraycreateNonNullChaincreateNonNullExpressioncreateNotEmittedStatementcreateNullcreateNumericLiteralcreateObjectBindingPatterncreateObjectLiteralcreateOmittedExpressioncreateOptimisticUniqueNamecreateOptionalTypeNodecreateParametercreateParencreateParenthesizedTypecreatePartiallyEmittedExpressioncreatePostfixcreatePostfixIncrementcreatePrefixcreatePrintercreatePrivateIdentifiercreateProgramcreatePropertycreatePropertyAccesscreatePropertyAccessChaincreatePropertyAssignmentcreatePropertySignaturecreateQualifiedNamecreateRegularExpressionLiteralcreateRestTypeNodecreateReturncreateScannercreateSemanticDiagnosticsBuilderProgramcreateSemicolonClassElementcreateSetAccessorcreateShorthandPropertyAssignmentcreateSolutionBuildercreateSolutionBuilderHostcreateSolutionBuilderWithWatchcreateSolutionBuilderWithWatchHostcreateSourceFilecreateSourceMapSourcecreateSpreadcreateSpreadAssignmentcreateStatementcreateStrictEqualitycreateStrictInequalitycreateStringLiteralcreateStringLiteralFromNodecreateSubtractcreateSupercreateSwitchcreateTaggedTemplatecreateTempVariablecreateTemplateExpressioncreateTemplateHeadcreateTemplateMiddlecreateTemplateSpancreateTemplateTailcreateTextChangeRangecreateTextSpancreateTextSpanFromBoundscreateThiscreateThisTypeNodecreateThrowcreateTokencreateTruecreateTrycreateTupleTypeNodecreateTypeAliasDeclarationcreateTypeAssertioncreateTypeLiteralNodecreateTypeOfcreateTypeOperatorNodecreateTypeParameterDeclarationcreateTypePredicateNodecreateTypePredicateNodeWithModifiercreateTypeQueryNodecreateTypeReferenceDirectiveResolutionCachecreateTypeReferenceNodecreateUnionTypeNodecreateUniqueNamecreateUnparsedSourceFilecreateVariableDeclarationcreateVariableDeclarationListcreateVariableStatementcreateVoidcreateVoidZerocreateWatchCompilerHostcreateWatchProgramcreateWhilecreateWithcreateYielddecodedTextSpanIntersectsWithdisplayPartsToStringdisposeEmitNodesescapeLeadingUnderscoresfindAncestorfindConfigFileflattenDiagnosticMessageTextforEachChildforEachLeadingCommentRangeforEachTrailingCommentRangeformatDiagnosticformatDiagnosticsformatDiagnosticsWithColorAndContextgetAllJSDocTagsgetAllJSDocTagsOfKindgetAutomaticTypeDirectiveNamesgetCombinedModifierFlagsgetCombinedNodeFlagsgetCommentRangegetConfigFileParsingDiagnosticsgetConstantValuegetDefaultCompilerOptionsgetDefaultFormatCodeSettingsgetDefaultLibFileNamegetDefaultLibFilePathgetEffectiveConstraintOfTypeParametergetEffectiveTypeParameterDeclarationsgetEffectiveTypeRootsgetEmitHelpersgetGeneratedNameForNodegetImpliedNodeFormatForFilegetJSDocAugmentsTaggetJSDocClassTaggetJSDocDeprecatedTaggetJSDocEnumTaggetJSDocImplementsTagsgetJSDocOverrideTagNoCachegetJSDocParameterTagsgetJSDocPrivateTaggetJSDocProtectedTaggetJSDocPublicTaggetJSDocReadonlyTaggetJSDocReturnTaggetJSDocReturnTypegetJSDocTagsgetJSDocTemplateTaggetJSDocThisTaggetJSDocTypegetJSDocTypeParameterTagsgetJSDocTypeTaggetLeadingCommentRangesgetLineAndCharacterOfPositiongetMutableClonegetNameOfDeclarationgetNameOfJSDocTypedefgetNodeMajorVersiongetOriginalNodegetOutputFileNamesgetParseTreeNodegetParsedCommandLineOfConfigFilegetPositionOfLineAndCharactergetPreEmitDiagnosticsgetShebanggetSourceMapRangegetSupportedCodeFixesgetSyntheticLeadingCommentsgetSyntheticTrailingCommentsgetTextOfJSDocCommentgetTokenSourceMapRangegetTrailingCommentRangesgetTsBuildInfoEmitOutputFilePathgetTypeParameterOwnerhasJSDocParameterTagshasOnlyExpressionInitializeridTextisAccessorisArrayBindingPatternisArrayLiteralExpressionisArrayTypeNodeisArrowFunctionisAsExpressionisAssertClauseisAssertEntryisAssertionExpressionisAssertionKeyisAsteriskTokenisAwaitExpressionisBigIntLiteralisBinaryExpressionisBindingElementisBindingNameisBlockisBreakOrContinueStatementisBreakStatementisBundleisCallChainisCallExpressionisCallLikeExpressionisCallOrNewExpressionisCallSignatureDeclarationisCaseBlockisCaseClauseisCaseOrDefaultClauseisCatchClauseisClassDeclarationisClassElementisClassExpressionisClassLikeisClassOrTypeElementisClassStaticBlockDeclarationisCommaListExpressionisComputedPropertyNameisConditionalExpressionisConditionalTypeNodeisConstTypeReferenceisConstructSignatureDeclarationisConstructorDeclarationisConstructorTypeNodeisContinueStatementisDebuggerStatementisDecoratorisDefaultClauseisDeleteExpressionisDoStatementisDotDotDotTokenisElementAccessChainisElementAccessExpressionisEmptyBindingElementisEmptyBindingPatternisEmptyStatementisEntityNameisEnumDeclarationisEnumMemberisExportAssignmentisExportDeclarationisExportSpecifierisExpressionStatementisExpressionWithTypeArgumentsisExternalModuleisExternalModuleNameRelativeisExternalModuleReferenceisForInStatementisForOfStatementisForStatementisFunctionDeclarationisFunctionExpressionisFunctionLikeisFunctionOrConstructorTypeNodeisFunctionTypeNodeisGetAccessorisGetAccessorDeclarationisHeritageClauseisIdentifierisIdentifierOrPrivateIdentifierisIdentifierPartisIdentifierStartisIfStatementisImportClauseisImportDeclarationisImportEqualsDeclarationisImportOrExportSpecifierisImportSpecifierisImportTypeNodeisIndexSignatureDeclarationisIndexedAccessTypeNodeisInferTypeNodeisInterfaceDeclarationisIntersectionTypeNodeisIterationStatementisJSDocisJSDocAllTypeisJSDocAugmentsTagisJSDocAuthorTagisJSDocCallbackTagisJSDocClassTagisJSDocCommentContainingNodeisJSDocDeprecatedTagisJSDocEnumTagisJSDocFunctionTypeisJSDocImplementsTagisJSDocLinkisJSDocLinkCodeisJSDocLinkLikeisJSDocLinkPlainisJSDocMemberNameisJSDocNameReferenceisJSDocNamepathTypeisJSDocNonNullableTypeisJSDocNullableTypeisJSDocOptionalTypeisJSDocOverrideTagisJSDocParameterTagisJSDocPrivateTagisJSDocPropertyLikeTagisJSDocPropertyTagisJSDocProtectedTagisJSDocPublicTagisJSDocReadonlyTagisJSDocReturnTagisJSDocSeeTagisJSDocSignatureisJSDocTemplateTagisJSDocThisTagisJSDocTypeExpressionisJSDocTypeLiteralisJSDocTypeTagisJSDocTypedefTagisJSDocUnknownTagisJSDocUnknownTypeisJSDocVariadicTypeisJsxAttributeisJsxAttributesisJsxClosingElementisJsxClosingFragmentisJsxElementisJsxExpressionisJsxFragmentisJsxOpeningElementisJsxOpeningFragmentisJsxOpeningLikeElementisJsxSelfClosingElementisJsxSpreadAttributeisJsxTextisLabeledStatementisLineBreakisLiteralExpressionisLiteralTypeNodeisMappedTypeNodeisMemberNameisMetaPropertyisMethodDeclarationisMethodSignatureisMinusTokenisMissingDeclarationisModifierisModuleBlockisModuleDeclarationisNamedExportBindingsisNamedExportsisNamedImportsisNamedTupleMemberisNamespaceExportisNamespaceExportDeclarationisNamespaceImportisNewExpressionisNoSubstitutionTemplateLiteralisNonNullChainisNonNullExpressionisNotEmittedStatementisNullishCoalesceisNumericLiteralisObjectBindingPatternisObjectLiteralElementisObjectLiteralElementLikeisObjectLiteralExpressionisOmittedExpressionisOptionalChainisOptionalTypeNodeisParameterisParameterPropertyDeclarationisParenthesizedExpressionisParenthesizedTypeNodeisParseTreeNodeisPartiallyEmittedExpressionisPlusTokenisPostfixUnaryExpressionisPrefixUnaryExpressionisPrivateIdentifierisPropertyAccessChainisPropertyAccessExpressionisPropertyAccessOrQualifiedNameisPropertyAssignmentisPropertyDeclarationisPropertyNameisPropertySignatureisQualifiedNameisRegularExpressionLiteralisRestTypeNodeisReturnStatementisSemicolonClassElementisSetAccessorisSetAccessorDeclarationisShorthandPropertyAssignmentisSourceFileisSpreadAssignmentisSpreadElementisStringLiteralisStringLiteralLikeisStringTextContainingNodeisSwitchStatementisSyntheticExpressionisTaggedTemplateExpressionisTemplateExpressionisTemplateHeadisTemplateLiteralisTemplateLiteralTokenisTemplateLiteralTypeNodeisTemplateLiteralTypeSpanisTemplateMiddleisTemplateMiddleOrTemplateTailisTemplateSpanisTemplateTailisThisTypeNodeisThrowStatementisTokenisTokenKindisTryStatementisTupleTypeNodeisTypeAliasDeclarationisTypeAssertionisTypeAssertionExpressionisTypeElementisTypeLiteralNodeisTypeNodeisTypeOfExpressionisTypeOnlyImportOrExportDeclarationisTypeOperatorNodeisTypeParameterDeclarationisTypePredicateNodeisTypeQueryNodeisTypeReferenceNodeisUnionTypeNodeisUnparsedNodeisUnparsedPrependisUnparsedSourceisUnparsedTextLikeisVariableDeclarationisVariableDeclarationListisVariableStatementisVoidExpressionisWhileStatementisWhiteSpaceLikeisWhiteSpaceSingleLineisWithStatementisYieldExpressionmoveEmitHelpersmoveSyntheticCommentsnodeModuleNameResolverparseCommandLineparseConfigFileTextToJsonparseIsolatedEntityNameparseJsonConfigFileContentparseJsonSourceFileConfigFileContentparseJsonTextpreProcessFilereadBuilderProgramreadConfigFilereadJsonConfigFilereduceEachLeadingCommentRangereduceEachTrailingCommentRangeremoveEmitHelperresolveModuleNameresolveModuleNameFromCacheresolveProjectReferencePathresolveTripleslashReferenceresolveTypeReferenceDirectivesetCommentRangesetConstantValuesetEmitFlagssetOriginalNodesetSourceMapRangesetSyntheticLeadingCommentssetSyntheticTrailingCommentssetTextRangesetTokenSourceMapRangeskipPartiallyEmittedExpressionssortAndDeduplicateDiagnosticssymbolNametextChangeRangeIsUnchangedtextChangeRangeNewSpantextSpanContainsPositiontextSpanContainsTextSpantextSpanEndtextSpanIntersectiontextSpanIntersectsWithtextSpanIntersectsWithPositiontextSpanIntersectsWithTextSpantextSpanIsEmptytextSpanOverlaptextSpanOverlapsWithtoEditorSettingstokenToStringtransformtranspiletranspileModuleunescapeLeadingUnderscoresupdateArrayBindingPatternupdateArrayLiteralupdateArrayTypeNodeupdateArrowFunctionupdateAsExpressionupdateAwaitupdateBinaryupdateBindingElementupdateBlockupdateBreakupdateBundleupdateCallupdateCallChainupdateCallSignatureupdateCaseBlockupdateCaseClauseupdateCatchClauseupdateClassDeclarationupdateClassExpressionupdateCommaListupdateComputedPropertyNameupdateConditionalupdateConditionalTypeNodeupdateConstructSignatureupdateConstructorupdateConstructorTypeNodeupdateContinueupdateDecoratorupdateDefaultClauseupdateDeleteupdateDoupdateElementAccessupdateElementAccessChainupdateEnumDeclarationupdateEnumMemberupdateExportAssignmentupdateExportDeclarationupdateExportSpecifierupdateExpressionStatementupdateExpressionWithTypeArgumentsupdateExternalModuleReferenceupdateForupdateForInupdateForOfupdateFunctionDeclarationupdateFunctionExpressionupdateFunctionTypeNodeupdateGetAccessorupdateHeritageClauseupdateIfupdateImportClauseupdateImportDeclarationupdateImportEqualsDeclarationupdateImportSpecifierupdateImportTypeNodeupdateIndexSignatureupdateIndexedAccessTypeNodeupdateInferTypeNodeupdateInterfaceDeclarationupdateIntersectionTypeNodeupdateJsxAttributeupdateJsxAttributesupdateJsxClosingElementupdateJsxElementupdateJsxExpressionupdateJsxFragmentupdateJsxOpeningElementupdateJsxSelfClosingElementupdateJsxSpreadAttributeupdateJsxTextupdateLabelupdateLanguageServiceSourceFileupdateLiteralTypeNodeupdateMappedTypeNodeupdateMetaPropertyupdateMethodupdateMethodSignatureupdateModuleBlockupdateModuleDeclarationupdateNamedExportsupdateNamedImportsupdateNamespaceExportupdateNamespaceExportDeclarationupdateNamespaceImportupdateNewupdateNonNullChainupdateNonNullExpressionupdateObjectBindingPatternupdateObjectLiteralupdateOptionalTypeNodeupdateParameterupdateParenupdateParenthesizedTypeupdatePartiallyEmittedExpressionupdatePostfixupdatePrefixupdatePropertyupdatePropertyAccessupdatePropertyAccessChainupdatePropertyAssignmentupdatePropertySignatureupdateQualifiedNameupdateRestTypeNodeupdateReturnupdateSetAccessorupdateShorthandPropertyAssignmentupdateSourceFileupdateSourceFileNodeupdateSpreadupdateSpreadAssignmentupdateStatementupdateSwitchupdateTaggedTemplateupdateTemplateExpressionupdateTemplateSpanupdateThrowupdateTryupdateTupleTypeNodeupdateTypeAliasDeclarationupdateTypeAssertionupdateTypeLiteralNodeupdateTypeOfupdateTypeOperatorNodeupdateTypeParameterDeclarationupdateTypePredicateNodeupdateTypePredicateNodeWithModifierupdateTypeQueryNodeupdateTypeReferenceNodeupdateUnionTypeNodeupdateVariableDeclarationupdateVariableDeclarationListupdateVariableStatementupdateVoidupdateWhileupdateWithupdateYieldvalidateLocaleAndSetLanguagevisitEachChildvisitFunctionBodyvisitIterationBodyvisitLexicalEnvironmentvisitNodevisitNodesvisitParameterListwalkUpBindingElementsAndPatterns

Type aliases

AbstractKeyword: ModifierToken<AbstractKeyword>
AccessibilityModifier: PublicKeyword | PrivateKeyword | ProtectedKeyword
AdditiveOperator: PlusToken | MinusToken
AffectedFileResult<T>: { affected: TypeScript.SourceFile | Program; result: T } | undefined

Type parameters

  • T

ArrayBindingElement: BindingElement | OmittedExpression
ArrayBindingOrAssignmentPattern: ArrayBindingPattern | ArrayLiteralExpression
AssertKeyword: KeywordToken<AssertKeyword>
AssertionExpression: TypeAssertion | AsExpression
AssertionKey: Identifier | StringLiteral
AssertsKeyword: KeywordToken<AssertsKeyword>
AssertsToken: AssertsKeyword
deprecated

Use AssertsKeyword instead.

AssignmentOperatorToken: Token<AssignmentOperator>
AwaitKeyword: KeywordToken<AwaitKeyword>
AwaitKeywordToken: AwaitKeyword
deprecated

Use AwaitKeyword instead.

BinaryOperatorToken: Token<BinaryOperator>
BindingName: Identifier | BindingPattern
BindingOrAssignmentElementRestIndicator: DotDotDotToken | SpreadElement | SpreadAssignment
BitwiseOperator: AmpersandToken | BarToken | CaretToken
BitwiseOperatorOrHigher: EqualityOperatorOrHigher | BitwiseOperator
BooleanLiteral: TrueLiteral | FalseLiteral
BreakOrContinueStatement: BreakStatement | ContinueStatement
CaseOrDefaultClause: CaseClause | DefaultClause
ClassLikeDeclaration: ClassDeclaration | ClassExpression
CodeActionCommand: InstallPackageAction
CompilerOptionsValue: string | number | boolean | (string | number)[] | string[] | MapLike<string[]> | PluginImport[] | ProjectReference[] | null | undefined
CompletionsTriggerCharacter: "." | "\"" | "'" | "`" | "/" | "@" | "<" | "#" | " "
ConciseBody: FunctionBody | Expression
CreateProgram<T>: (rootNames: readonly string[] | undefined, options: CompilerOptions | undefined, host?: CompilerHost, oldProgram?: T, configFileParsingDiagnostics?: readonly Diagnostic[], projectReferences?: readonly ProjectReference[]) => T

Type parameters

Type declaration

    • Create the program with rootNames and options, if they are undefined, oldProgram and new configFile diagnostics create new program

      Parameters

      Returns T

CustomTransformerFactory: (context: TransformationContext) => CustomTransformer

Type declaration

DeclareKeyword: ModifierToken<DeclareKeyword>
DefaultKeyword: ModifierToken<DefaultKeyword>
DiagnosticReporter: (diagnostic: Diagnostic) => void

Type declaration

DirectoryWatcherCallback: (fileName: string) => void

Type declaration

    • (fileName: string): void
    • Parameters

      • fileName: string

      Returns void

DocumentRegistryBucketKey: string & { __bucketKey: any }
EmitHelperUniqueNameCallback: (name: string) => string

Type declaration

    • (name: string): string
    • Parameters

      • name: string

      Returns string

EntityNameOrEntityNameExpression: EntityName | EntityNameExpression
EqualityOperatorOrHigher: RelationalOperatorOrHigher | EqualityOperator
EqualsGreaterThanToken: PunctuationToken<EqualsGreaterThanToken>
ErrorCallback: (message: DiagnosticMessage, length: number) => void

Type declaration

ExponentiationOperator: AsteriskAsteriskToken
FileWatcherCallback: (fileName: string, eventKind: FileWatcherEventKind) => void

Type declaration

ForInOrOfStatement: ForInStatement | ForOfStatement
FunctionBody: Block
FunctionLike: SignatureDeclaration
deprecated

Use SignatureDeclaration

FunctionOrConstructorTypeNode: FunctionTypeNode | ConstructorTypeNode
ImportOrExportSpecifier: ImportSpecifier | ExportSpecifier
IncrementExpression: UpdateExpression

Deprecated, please use UpdateExpression

Type parameters

JsFileExtensionInfo: FileExtensionInfo
deprecated

Use FileExtensionInfo instead.

JsxAttributeLike: JsxAttribute | JsxSpreadAttribute
JsxOpeningLikeElement: JsxSelfClosingElement | JsxOpeningElement
LogicalOperatorOrHigher: BitwiseOperatorOrHigher | LogicalOperator
ModifiersArray: NodeArray<Modifier>
MultiplicativeOperator: AsteriskToken | SlashToken | PercentToken
MultiplicativeOperatorOrHigher: ExponentiationOperator | MultiplicativeOperator
NamedExportBindings: NamespaceExport | NamedExports
NamedImportBindings: NamespaceImport | NamedImports
NamedImportsOrExports: NamedImports | NamedExports
ObjectBindingOrAssignmentPattern: ObjectBindingPattern | ObjectLiteralExpression

Unlike ObjectLiteralElement, excludes JSXAttribute and JSXSpreadAttribute.

OverrideKeyword: ModifierToken<OverrideKeyword>
ParameterPropertyDeclaration: ParameterDeclaration & { name: Identifier; parent: ConstructorDeclaration }
ParameterPropertyModifier: AccessibilityModifier | ReadonlyKeyword
Path: string & { __pathBrand: any }
PostfixUnaryOperator: PlusPlusToken | MinusMinusToken
PrivateKeyword: ModifierToken<PrivateKeyword>
ProtectedKeyword: ModifierToken<ProtectedKeyword>
PseudoLiteralSyntaxKind: TemplateHead | TemplateMiddle | TemplateTail
PseudoLiteralToken: TemplateHead | TemplateMiddle | TemplateTail
ReadonlyKeyword: ModifierToken<ReadonlyKeyword>
ReadonlyToken: ReadonlyKeyword
deprecated

Use ReadonlyKeyword instead.

RefactorTriggerReason: "implicit" | "invoked"
RelationalOperatorOrHigher: ShiftOperatorOrHigher | RelationalOperator
ReportEmitErrorSummary: (errorCount: number) => void

Type declaration

    • (errorCount: number): void
    • Parameters

      • errorCount: number

      Returns void

ResolvedConfigFileName: string & { _isResolvedConfigFileName: never }

Branded string for keeping track of when we've turned an ambiguous path specified like "./blah" to an absolute path to an actual tsconfig file, e.g. "/root/blah/tsconfig.json"

ShiftOperatorOrHigher: AdditiveOperatorOrHigher | ShiftOperator
SignatureHelpRetriggerCharacter: SignatureHelpTriggerCharacter | ")"
SignatureHelpTriggerCharacter: "," | "(" | "<"

SymbolTable based on ES6 Map interface.

Transformer<T>: (node: T) => T

Type parameters

Type declaration

    • (node: T): T
    • A function that transforms a node.

      Parameters

      • node: T

      Returns T

TransformerFactory<T>: (context: TransformationContext) => Transformer<T>

Type parameters

Type declaration

TypeOfTag: "undefined" | "number" | "bigint" | "boolean" | "string" | "symbol" | "object" | "function"
TypeOnlyAliasDeclaration: (ImportClause & { isTypeOnly: true; name: Identifier }) | (ImportEqualsDeclaration & { isTypeOnly: true }) | (NamespaceImport & { parent: ImportClause & { isTypeOnly: true } }) | (ImportSpecifier & { parent: NamedImports & { parent: ImportClause & { isTypeOnly: true } } }) | (ExportSpecifier & { parent: NamedExports & { parent: ExportDeclaration & { isTypeOnly: true } } })
UnionOrIntersectionTypeNode: UnionTypeNode | IntersectionTypeNode
UnparsedSourceText: UnparsedPrepend | UnparsedTextLike
VisitResult<T>: T | T[] | undefined

Type parameters

Visitor: (node: Node) => VisitResult<Node>

Type declaration

WatchStatusReporter: (diagnostic: Diagnostic, newLine: string, options: CompilerOptions, errorCount?: number) => void

Type declaration

WithMetadata<T>: T & { metadata?: unknown }

Type parameters

  • T

WriteFileCallback: (fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: readonly TypeScript.SourceFile[]) => void

Type declaration

    • (fileName: string, data: string, writeByteOrderMark: boolean, onError?: (message: string) => void, sourceFiles?: readonly TypeScript.SourceFile[]): void
    • Parameters

      • fileName: string
      • data: string
      • writeByteOrderMark: boolean
      • Optional onError: (message: string) => void
          • (message: string): void
          • Parameters

            • message: string

            Returns void

      • Optional sourceFiles: readonly TypeScript.SourceFile[]

      Returns void

__String: (string & { __escapedIdentifier: void }) | (void & { __escapedIdentifier: void }) | InternalSymbolName

This represents a string whose leading underscore have been escaped by adding extra leading underscores. The shape of this brand is rather unique compared to others we've used. Instead of just an intersection of a string and an object, it is that union-ed with an intersection of void and an object. This makes it wholly incompatible with a normal string (which is good, it cannot be misused on assignment or on usage), while still being comparable with a normal string via === (also good) and castable from a string.

Variables

factory: NodeFactory
servicesVersion: "0.8" = "0.8"

The version of the language service API

sys: System
unchangedTextChangeRange: TextChangeRange
version: string

The version of the TypeScript compiler release

versionMajorMinor: "4.5" = "4.5"

Functions

  • Adds an EmitHelper to a node.

    Type parameters

    Parameters

    Returns T

  • addEmitHelpers<T>(node: T, helpers: undefined | EmitHelper[]): T
  • Add EmitHelpers to a node.

    Type parameters

    Parameters

    Returns T

  • Called to merge all the changes that occurred across several versions of a script snapshot into a single change. i.e. if a user keeps making successive edits to a script we will have a text change from V1 to V2, V2 to V3, ..., Vn.

    This function will then merge those changes into a single change range valid between V1 and Vn.

    Parameters

    Returns TextChangeRange

  • convertCompilerOptionsFromJson(jsonOptions: any, basePath: string, configFileName?: string): { errors: Diagnostic[]; options: CompilerOptions }
  • Convert the json syntax tree into the json value

    Parameters

    Returns any

  • convertTypeAcquisitionFromJson(jsonOptions: any, basePath: string, configFileName?: string): { errors: Diagnostic[]; options: TypeAcquisition }
  • couldStartTrivia(text: string, pos: number): boolean
  • Parameters

    • text: string
    • pos: number

    Returns boolean

  • deprecated

    Use factory.createAdd or the factory supplied by your transformation context instead.

    Parameters

    Returns BinaryExpression

  • deprecated

    Use factory.createArrayBindingPattern or the factory supplied by your transformation context instead.

    Parameters

    Returns ArrayBindingPattern

  • deprecated

    Use factory.createArrayLiteralExpression or the factory supplied by your transformation context instead.

    Parameters

    • Optional elements: readonly Expression[]
    • Optional multiLine: boolean

    Returns ArrayLiteralExpression

  • deprecated

    Use factory.createArrayTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns ArrayTypeNode

  • deprecated

    Use factory.createAsExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns AsExpression

  • deprecated

    Use factory.createAssignment or the factory supplied by your transformation context instead.

    Parameters

    Returns BinaryExpression

  • deprecated

    Use factory.createAwaitExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns AwaitExpression

  • deprecated

    Use factory.createBigIntLiteral or the factory supplied by your transformation context instead.

    Parameters

    Returns BigIntLiteral

  • deprecated

    Use factory.createBindingElement or the factory supplied by your transformation context instead.

    Parameters

    Returns BindingElement

  • createBlock(statements: readonly Statement[], multiLine?: boolean): Block
  • deprecated

    Use factory.createBlock or the factory supplied by your transformation context instead.

    Parameters

    • statements: readonly Statement[]
    • Optional multiLine: boolean

    Returns Block

  • deprecated

    Use factory.createBreakStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns BreakStatement

  • Create a function that reports watch status by writing to the system and handles the formating of the diagnostic

    Parameters

    • system: System
    • Optional pretty: boolean

    Returns DiagnosticReporter

  • deprecated

    Use factory.createBundle or the factory supplied by your transformation context instead.

    Parameters

    Returns Bundle

  • deprecated

    Use factory.createCallExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns CallExpression

  • deprecated

    Use factory.createCallChain or the factory supplied by your transformation context instead.

    Parameters

    Returns CallChain

  • deprecated

    Use factory.createCaseBlock or the factory supplied by your transformation context instead.

    Parameters

    Returns CaseBlock

  • deprecated

    Use factory.createCaseClause or the factory supplied by your transformation context instead.

    Parameters

    Returns CaseClause

  • deprecated

    Use factory.createCatchClause or the factory supplied by your transformation context instead.

    Parameters

    Returns CatchClause

  • deprecated

    Use factory.createClassExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns ClassExpression

  • The classifier is used for syntactic highlighting in editors via the TSServer

    Returns Classifier

  • deprecated

    Use factory.createComma or the factory supplied by your transformation context instead.

    Parameters

    Returns Expression

  • deprecated

    Use factory.createCommaListExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns CommaListExpression

  • Parameters

    Returns CompilerHost

  • deprecated

    Use factory.createComputedPropertyName or the factory supplied by your transformation context instead.

    Parameters

    Returns ComputedPropertyName

  • deprecated

    Use factory.createConditionalTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns ConditionalTypeNode

  • deprecated

    Use factory.createConstructorDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns ConstructorDeclaration

  • deprecated

    Use factory.createContinueStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ContinueStatement

  • deprecated

    Use factory.createDebuggerStatement or the factory supplied by your transformation context instead.

    Returns DebuggerStatement

  • deprecated

    Use factory.createDecorator or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeScript.Decorator

  • deprecated

    Use factory.createDefaultClause or the factory supplied by your transformation context instead.

    Parameters

    Returns DefaultClause

  • deprecated

    Use factory.createDeleteExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns DeleteExpression

  • deprecated

    Use factory.createDoStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns DoStatement

  • createDocumentRegistry(useCaseSensitiveFileNames?: boolean, currentDirectory?: string): DocumentRegistry
  • Parameters

    • Optional useCaseSensitiveFileNames: boolean
    • Optional currentDirectory: string

    Returns DocumentRegistry

  • deprecated

    Use factory.createElementAccessExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns ElementAccessExpression

  • deprecated

    Use factory.createElementAccessChain or the factory supplied by your transformation context instead.

    Parameters

    Returns ElementAccessChain

  • deprecated

    Use factory.createEmptyStatement or the factory supplied by your transformation context instead.

    Returns EmptyStatement

  • deprecated

    Use factory.createEnumDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns EnumDeclaration

  • deprecated

    Use factory.createEnumMember or the factory supplied by your transformation context instead.

    Parameters

    Returns EnumMember

  • deprecated

    Use factory.createExportAssignment or the factory supplied by your transformation context instead.

    Parameters

    Returns ExportAssignment

  • deprecated

    Use factory.createExportDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns ExportDeclaration

  • deprecated

    Use factory.createExportDefault or the factory supplied by your transformation context instead.

    Parameters

    Returns ExportAssignment

  • deprecated

    Use factory.createExportSpecifier or the factory supplied by your transformation context instead.

    Parameters

    Returns ExportSpecifier

  • deprecated

    Use factory.createExpressionStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ExpressionStatement

  • deprecated

    Use factory.createExpressionWithTypeArguments or the factory supplied by your transformation context instead.

    Parameters

    Returns ExpressionWithTypeArguments

  • deprecated

    Use factory.createExternalModuleExport or the factory supplied by your transformation context instead.

    Parameters

    Returns ExportDeclaration

  • deprecated

    Use factory.createExternalModuleReference or the factory supplied by your transformation context instead.

    Parameters

    Returns ExternalModuleReference

  • deprecated

    Use factory.createFalse or the factory supplied by your transformation context instead.

    Returns FalseLiteral

  • createFileLevelUniqueName(text: string): Identifier
  • deprecated

    Use factory.createUniqueName(text, GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel) or the factory supplied by your transformation context instead.

    Parameters

    • text: string

    Returns Identifier

  • deprecated

    Use factory.createForStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ForStatement

  • deprecated

    Use factory.createForInStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ForInStatement

  • deprecated

    Use factory.createForOfStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ForOfStatement

  • deprecated

    Use factory.createIdentifier or the factory supplied by your transformation context instead.

    Parameters

    • text: string

    Returns Identifier

  • deprecated

    Use factory.createIfStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns IfStatement

  • deprecated

    Use factory.createImmediatelyInvokedArrowFunction or the factory supplied by your transformation context instead.

    Parameters

    Returns CallExpression

  • deprecated

    Use factory.createImmediatelyInvokedArrowFunction or the factory supplied by your transformation context instead.

    Parameters

    Returns CallExpression

  • deprecated

    Use factory.createImmediatelyInvokedFunctionExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns CallExpression

  • deprecated

    Use factory.createImmediatelyInvokedFunctionExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns CallExpression

  • deprecated

    Use factory.createImportClause or the factory supplied by your transformation context instead.

    Parameters

    Returns ImportClause

  • deprecated

    Use factory.createImportDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns ImportDeclaration

  • deprecated

    Use factory.createImportEqualsDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns ImportEqualsDeclaration

  • deprecated

    Use factory.createImportSpecifier or the factory supplied by your transformation context instead.

    Parameters

    Returns ImportSpecifier

  • deprecated

    Use factory.createImportTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns ImportTypeNode

  • deprecated

    Use factory.createIndexedAccessTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns IndexedAccessTypeNode

  • deprecated

    Use factory.createInferTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns InferTypeNode

  • createInputFiles(javascriptText: string, declarationText: string): InputFiles
  • createInputFiles(readFileText: (path: string) => undefined | string, javascriptPath: string, javascriptMapPath: undefined | string, declarationPath: string, declarationMapPath: undefined | string, buildInfoPath: undefined | string): InputFiles
  • createInputFiles(javascriptText: string, declarationText: string, javascriptMapPath: undefined | string, javascriptMapText: undefined | string, declarationMapPath: undefined | string, declarationMapText: undefined | string): InputFiles
  • Parameters

    • javascriptText: string
    • declarationText: string

    Returns InputFiles

  • Parameters

    • readFileText: (path: string) => undefined | string
        • (path: string): undefined | string
        • Parameters

          • path: string

          Returns undefined | string

    • javascriptPath: string
    • javascriptMapPath: undefined | string
    • declarationPath: string
    • declarationMapPath: undefined | string
    • buildInfoPath: undefined | string

    Returns InputFiles

  • Parameters

    • javascriptText: string
    • declarationText: string
    • javascriptMapPath: undefined | string
    • javascriptMapText: undefined | string
    • declarationMapPath: undefined | string
    • declarationMapText: undefined | string

    Returns InputFiles

  • deprecated

    Use factory.createIntersectionTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns IntersectionTypeNode

  • deprecated

    Use factory.createJSDocAuthorTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocAuthorTag

  • deprecated

    Use factory.createJSDocClassTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocClassTag

  • deprecated

    Use factory.createJSDocComment or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDoc

  • deprecated

    Use factory.createJSDocEnumTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocEnumTag

  • deprecated

    Use factory.createJSDocParameterTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocParameterTag

  • deprecated

    Use factory.createJSDocParameterTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocParameterTag

  • deprecated

    Use factory.createJSDocPrivateTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocPrivateTag

  • deprecated

    Use factory.createJSDocPropertyTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocPropertyTag

  • deprecated

    Use factory.createJSDocProtectedTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocProtectedTag

  • deprecated

    Use factory.createJSDocPublicTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocPublicTag

  • deprecated

    Use factory.createJSDocReadonlyTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocReadonlyTag

  • deprecated

    Use factory.createJSDocReturnTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocReturnTag

  • deprecated

    Use factory.createJSDocSignature or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocSignature

  • deprecated

    Use factory.createJSDocUnknownTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocUnknownTag

  • deprecated

    Use factory.createJSDocThisTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocThisTag

  • deprecated

    Use factory.createJSDocTypeExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocTypeExpression

  • deprecated

    Use factory.createJSDocTypeLiteral or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocTypeLiteral

  • deprecated

    Use factory.createJSDocTypeTag or the factory supplied by your transformation context instead.

    Parameters

    Returns JSDocTypeTag

  • deprecated

    Use factory.createJsxAttribute or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxAttribute

  • deprecated

    Use factory.createJsxAttributes or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxAttributes

  • deprecated

    Use factory.createJsxClosingElement or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxClosingElement

  • deprecated

    Use factory.createJsxElement or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxElement

  • deprecated

    Use factory.createJsxExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxExpression

  • deprecated

    Use factory.createJsxFragment or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxFragment

  • deprecated

    Use factory.createJsxJsxClosingFragment or the factory supplied by your transformation context instead.

    Returns JsxClosingFragment

  • deprecated

    Use factory.createJsxOpeningElement or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxOpeningElement

  • deprecated

    Use factory.createJsxOpeningFragment or the factory supplied by your transformation context instead.

    Returns JsxOpeningFragment

  • deprecated

    Use factory.createJsxSelfClosingElement or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxSelfClosingElement

  • deprecated

    Use factory.createJsxSpreadAttribute or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxSpreadAttribute

  • createJsxText(text: string, containsOnlyTriviaWhiteSpaces?: boolean): JsxText
  • deprecated

    Use factory.createJsxText or the factory supplied by your transformation context instead.

    Parameters

    • text: string
    • Optional containsOnlyTriviaWhiteSpaces: boolean

    Returns JsxText

  • deprecated

    Use factory.createKeywordTypeNode or the factory supplied by your transformation context instead.

    Type parameters

    Parameters

    • kind: TKind

    Returns KeywordTypeNode<TKind>

  • deprecated

    Use factory.createLabelStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns LabeledStatement

  • deprecated

    Use factory.createLessThan or the factory supplied by your transformation context instead.

    Parameters

    Returns Expression

  • deprecated

    Use factory.createStringLiteral, factory.createStringLiteralFromNode, factory.createNumericLiteral, factory.createBigIntLiteral, factory.createTrue, factory.createFalse, or the factory supplied by your transformation context instead.

    Returns StringLiteral

  • deprecated

    Use factory.createStringLiteral, factory.createStringLiteralFromNode, factory.createNumericLiteral, factory.createBigIntLiteral, factory.createTrue, factory.createFalse, or the factory supplied by your transformation context instead.

    Parameters

    Returns NumericLiteral

  • deprecated

    Use factory.createStringLiteral, factory.createStringLiteralFromNode, factory.createNumericLiteral, factory.createBigIntLiteral, factory.createTrue, factory.createFalse, or the factory supplied by your transformation context instead.

    Parameters

    • value: boolean

    Returns BooleanLiteral

  • deprecated

    Use factory.createStringLiteral, factory.createStringLiteralFromNode, factory.createNumericLiteral, factory.createBigIntLiteral, factory.createTrue, factory.createFalse, or the factory supplied by your transformation context instead.

    Parameters

    Returns PrimaryExpression

  • deprecated

    Use factory.createLogicalAnd or the factory supplied by your transformation context instead.

    Parameters

    Returns BinaryExpression

  • deprecated

    Use factory.createLogicalNot or the factory supplied by your transformation context instead.

    Parameters

    Returns PrefixUnaryExpression

  • deprecated

    Use factory.createLogicalOr or the factory supplied by your transformation context instead.

    Parameters

    Returns BinaryExpression

  • createLoopVariable(reservedInNestedScopes?: boolean): Identifier
  • deprecated

    Use factory.createLoopVariable or the factory supplied by your transformation context instead.

    Parameters

    • Optional reservedInNestedScopes: boolean

    Returns Identifier

  • deprecated

    Use factory.createMetaProperty or the factory supplied by your transformation context instead.

    Parameters

    Returns MetaProperty

  • deprecated

    Use factory.createModifier or the factory supplied by your transformation context instead.

    Type parameters

    Parameters

    • kind: T

    Returns ModifierToken<T>

  • deprecated

    Use factory.createModifiersFromModifierFlags or the factory supplied by your transformation context instead.

    Parameters

    Returns Modifier[]

  • deprecated

    Use factory.createModuleBlock or the factory supplied by your transformation context instead.

    Parameters

    Returns ModuleBlock

  • deprecated

    Use factory.createModuleDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns ModuleDeclaration

  • Parameters

    • currentDirectory: string
    • getCanonicalFileName: (s: string) => string
        • (s: string): string
        • Parameters

          • s: string

          Returns string

    • Optional options: CompilerOptions

    Returns ModuleResolutionCache

  • deprecated

    Use factory.createNamedExports or the factory supplied by your transformation context instead.

    Parameters

    Returns NamedExports

  • deprecated

    Use factory.createNamedImports or the factory supplied by your transformation context instead.

    Parameters

    Returns NamedImports

  • deprecated

    Use factory.createNamespaceExport or the factory supplied by your transformation context instead.

    Parameters

    Returns NamespaceExport

  • deprecated

    Use factory.createNamespaceExportDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns NamespaceExportDeclaration

  • deprecated

    Use factory.createNamespaceImport or the factory supplied by your transformation context instead.

    Parameters

    Returns NamespaceImport

  • deprecated

    Use factory.createNewExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns NewExpression

  • deprecated

    Use factory.createNoSubstitutionTemplateLiteral or the factory supplied by your transformation context instead.

    Parameters

    • text: string
    • Optional rawText: string

    Returns NoSubstitutionTemplateLiteral

  • deprecated

    Use factory.createNoSubstitutionTemplateLiteral or the factory supplied by your transformation context instead.

    Parameters

    • text: undefined | string
    • rawText: string

    Returns NoSubstitutionTemplateLiteral

  • deprecated

    Use an appropriate factory method instead.

    Parameters

    • kind: SyntaxKind
    • Optional pos: any
    • Optional end: any

    Returns Node

  • createNodeArray<T>(elements?: readonly T[], hasTrailingComma?: boolean): NodeArray<T>
  • deprecated

    Use factory.createNodeArray or the factory supplied by your transformation context instead.

    Type parameters

    Parameters

    • Optional elements: readonly T[]
    • Optional hasTrailingComma: boolean

    Returns NodeArray<T>

  • deprecated

    Use factory.createNonNullChain or the factory supplied by your transformation context instead.

    Parameters

    Returns NonNullChain

  • deprecated

    Use factory.createNonNullExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns NonNullExpression

  • deprecated

    Use factory.createNotEmittedStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns NotEmittedStatement

  • deprecated

    Use factory.createNull or the factory supplied by your transformation context instead.

    Returns NullLiteral

  • deprecated

    Use factory.createNumericLiteral or the factory supplied by your transformation context instead.

    Parameters

    • value: string | number
    • Optional numericLiteralFlags: TokenFlags

    Returns NumericLiteral

  • deprecated

    Use factory.createObjectBindingPattern or the factory supplied by your transformation context instead.

    Parameters

    Returns ObjectBindingPattern

  • deprecated

    Use factory.createObjectLiteralExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns ObjectLiteralExpression

  • deprecated

    Use factory.createOmittedExpression or the factory supplied by your transformation context instead.

    Returns OmittedExpression

  • createOptimisticUniqueName(text: string): Identifier
  • deprecated

    Use factory.createUniqueName(text, GeneratedIdentifierFlags.Optimistic) or the factory supplied by your transformation context instead.

    Parameters

    • text: string

    Returns Identifier

  • deprecated

    Use factory.createOptionalTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns OptionalTypeNode

  • deprecated

    Use factory.createParenthesizedExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns ParenthesizedExpression

  • deprecated

    Use factory.createParenthesizedType or the factory supplied by your transformation context instead.

    Parameters

    Returns ParenthesizedTypeNode

  • deprecated

    Use factory.createPartiallyEmittedExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns PartiallyEmittedExpression

  • deprecated

    Use factory.createPostfixUnaryExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns PostfixUnaryExpression

  • deprecated

    Use factory.createPostfixIncrement or the factory supplied by your transformation context instead.

    Parameters

    Returns PostfixUnaryExpression

  • deprecated

    Use factory.createPrefixExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns PrefixUnaryExpression

  • deprecated

    Use factory.createPrivateIdentifier or the factory supplied by your transformation context instead.

    Parameters

    • text: string

    Returns PrivateIdentifier

  • Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' that represent a compilation unit.

    Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in.

    Parameters

    Returns Program

    A 'Program' object.

  • Create a new 'Program' instance. A Program is an immutable collection of 'SourceFile's and a 'CompilerOptions' that represent a compilation unit.

    Creating a program proceeds from a set of root files, expanding the set of inputs by following imports and triple-slash-reference-path directives transitively. '@types' and triple-slash-reference-types are also pulled in.

    Parameters

    • rootNames: readonly string[]

      A set of root files.

    • options: CompilerOptions

      The compiler options which should be used.

    • Optional host: CompilerHost

      The host interacts with the underlying file system.

    • Optional oldProgram: Program

      Reuses an old program structure.

    • Optional configFileParsingDiagnostics: readonly Diagnostic[]

      error during config file parsing

    Returns Program

    A 'Program' object.

  • deprecated

    Use factory.createPropertyAccessExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns PropertyAccessExpression

  • deprecated

    Use factory.createPropertyAccessChain or the factory supplied by your transformation context instead.

    Parameters

    Returns PropertyAccessChain

  • deprecated

    Use factory.createPropertyAssignment or the factory supplied by your transformation context instead.

    Parameters

    Returns PropertyAssignment

  • deprecated

    Use factory.createPropertySignature or the factory supplied by your transformation context instead.

    Parameters

    Returns PropertySignature

  • deprecated

    Use factory.createQualifiedName or the factory supplied by your transformation context instead.

    Parameters

    Returns QualifiedName

  • deprecated

    Use factory.createRegularExpressionLiteral or the factory supplied by your transformation context instead.

    Parameters

    • text: string

    Returns RegularExpressionLiteral

  • deprecated

    Use factory.createRestTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns RestTypeNode

  • deprecated

    Use factory.createReturnStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ReturnStatement

  • Parameters

    Returns Scanner

  • deprecated

    Use factory.createSemicolonClassElement or the factory supplied by your transformation context instead.

    Returns SemicolonClassElement

  • deprecated

    Use factory.createShorthandPropertyAssignment or the factory supplied by your transformation context instead.

    Parameters

    Returns ShorthandPropertyAssignment

  • Parameters

    • fileName: string
    • sourceText: string
    • languageVersion: ScriptTarget
    • Optional setParentNodes: boolean
    • Optional scriptKind: ScriptKind

    Returns TypeScript.SourceFile

  • createSourceMapSource(fileName: string, text: string, skipTrivia?: (pos: number) => number): SourceMapSource
  • Create an external source map source file reference

    Parameters

    • fileName: string
    • text: string
    • Optional skipTrivia: (pos: number) => number
        • (pos: number): number
        • Parameters

          • pos: number

          Returns number

    Returns SourceMapSource

  • deprecated

    Use factory.createSpreadExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns SpreadElement

  • deprecated

    Use factory.createSpreadAssignment or the factory supplied by your transformation context instead.

    Parameters

    Returns SpreadAssignment

  • deprecated

    Use factory.createExpressionStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ExpressionStatement

  • deprecated

    Use factory.createStrictEquality or the factory supplied by your transformation context instead.

    Parameters

    Returns BinaryExpression

  • deprecated

    Use factory.createStrictInequality or the factory supplied by your transformation context instead.

    Parameters

    Returns BinaryExpression

  • createStringLiteral(text: string, isSingleQuote?: boolean): StringLiteral
  • createStringLiteral(text: string, isSingleQuote?: boolean, hasExtendedUnicodeEscape?: boolean): StringLiteral
  • deprecated

    Use factory.createStringLiteral or the factory supplied by your transformation context instead.

    Parameters

    • text: string
    • Optional isSingleQuote: boolean

    Returns StringLiteral

  • deprecated

    Use factory.createStringLiteral or the factory supplied by your transformation context instead.

    Parameters

    • text: string
    • Optional isSingleQuote: boolean
    • Optional hasExtendedUnicodeEscape: boolean

    Returns StringLiteral

  • deprecated

    Use factory.createStringLiteralFromNode or the factory supplied by your transformation context instead.

    Parameters

    Returns StringLiteral

  • deprecated

    Use factory.createSubtract or the factory supplied by your transformation context instead.

    Parameters

    Returns BinaryExpression

  • deprecated

    Use factory.createSuper or the factory supplied by your transformation context instead.

    Returns SuperExpression

  • deprecated

    Use factory.createSwitchStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns SwitchStatement

  • deprecated

    Use factory.createTaggedTemplate or the factory supplied by your transformation context instead.

    Parameters

    Returns TaggedTemplateExpression

  • deprecated

    Use factory.createTaggedTemplate or the factory supplied by your transformation context instead.

    Parameters

    Returns TaggedTemplateExpression

  • deprecated

    Use factory.createTempVariable or the factory supplied by your transformation context instead.

    Parameters

    • recordTempVariable: undefined | ((node: Identifier) => void)

    Returns Identifier

  • deprecated

    Use factory.createTemplateExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns TemplateExpression

  • deprecated

    Use factory.createTemplateHead or the factory supplied by your transformation context instead.

    Parameters

    • text: string
    • Optional rawText: string
    • Optional templateFlags: TokenFlags

    Returns TemplateHead

  • deprecated

    Use factory.createTemplateHead or the factory supplied by your transformation context instead.

    Parameters

    • text: undefined | string
    • rawText: string
    • Optional templateFlags: TokenFlags

    Returns TemplateHead

  • deprecated

    Use factory.createTemplateMiddle or the factory supplied by your transformation context instead.

    Parameters

    • text: string
    • Optional rawText: string
    • Optional templateFlags: TokenFlags

    Returns TemplateMiddle

  • deprecated

    Use factory.createTemplateMiddle or the factory supplied by your transformation context instead.

    Parameters

    • text: undefined | string
    • rawText: string
    • Optional templateFlags: TokenFlags

    Returns TemplateMiddle

  • deprecated

    Use factory.createTemplateSpan or the factory supplied by your transformation context instead.

    Parameters

    Returns TemplateSpan

  • deprecated

    Use factory.createTemplateTail or the factory supplied by your transformation context instead.

    Parameters

    • text: string
    • Optional rawText: string
    • Optional templateFlags: TokenFlags

    Returns TemplateTail

  • deprecated

    Use factory.createTemplateTail or the factory supplied by your transformation context instead.

    Parameters

    • text: undefined | string
    • rawText: string
    • Optional templateFlags: TokenFlags

    Returns TemplateTail

  • Parameters

    Returns TextChangeRange

  • createTextSpan(start: number, length: number): TextSpan
  • Parameters

    • start: number
    • length: number

    Returns TextSpan

  • createTextSpanFromBounds(start: number, end: number): TextSpan
  • Parameters

    • start: number
    • end: number

    Returns TextSpan

  • deprecated

    Use factory.createThis or the factory supplied by your transformation context instead.

    Returns ThisExpression

  • deprecated

    Use factory.createThisTypeNode or the factory supplied by your transformation context instead.

    Returns ThisTypeNode

  • deprecated

    Use factory.createThrowStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ThrowStatement

  • createToken<TKind>(kind: TKind): Token<TKind>
  • deprecated

    Use factory.createToken or the factory supplied by your transformation context instead.

    Type parameters

    Parameters

    • kind: TKind

    Returns Token<TKind>

  • deprecated

    Use factory.createTrue or the factory supplied by your transformation context instead.

    Returns TrueLiteral

  • deprecated

    Use factory.createTryStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns TryStatement

  • deprecated

    Use factory.createTupleTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TupleTypeNode

  • deprecated

    Use factory.createTypeAssertion or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeAssertion

  • deprecated

    Use factory.createTypeLiteralNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeLiteralNode

  • deprecated

    Use factory.createTypeOfExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeOfExpression

  • deprecated

    Use factory.createTypeOperatorNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeOperatorNode

  • deprecated

    Use factory.createTypeOperatorNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeOperatorNode

  • deprecated

    Use factory.createTypeParameterDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeParameterDeclaration

  • deprecated

    Use factory.createTypePredicateNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypePredicateNode

  • deprecated

    Use factory.createTypePredicateNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypePredicateNode

  • deprecated

    Use factory.createTypeQueryNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeQueryNode

  • deprecated

    Use factory.createTypeReferenceNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeReferenceNode

  • deprecated

    Use factory.createUnionTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns UnionTypeNode

  • deprecated

    Use factory.createUniqueName or the factory supplied by your transformation context instead.

    Parameters

    Returns Identifier

  • createUnparsedSourceFile(text: string): UnparsedSource
  • createUnparsedSourceFile(inputFile: InputFiles, type: "js" | "dts", stripInternal?: boolean): UnparsedSource
  • createUnparsedSourceFile(text: string, mapPath: undefined | string, map: undefined | string): UnparsedSource
  • Parameters

    • text: string

    Returns UnparsedSource

  • Parameters

    • inputFile: InputFiles
    • type: "js" | "dts"
    • Optional stripInternal: boolean

    Returns UnparsedSource

  • Parameters

    • text: string
    • mapPath: undefined | string
    • map: undefined | string

    Returns UnparsedSource

  • deprecated

    Use factory.createVariableDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns VariableDeclaration

  • deprecated

    Use factory.createVariableDeclaration or the factory supplied by your transformation context instead.

    Parameters

    Returns VariableDeclaration

  • deprecated

    Use factory.createVariableDeclarationList or the factory supplied by your transformation context instead.

    Parameters

    Returns VariableDeclarationList

  • deprecated

    Use factory.createVoidExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns VoidExpression

  • deprecated

    Use factory.createVoidZero or the factory supplied by your transformation context instead.

    Returns VoidExpression

  • deprecated

    Use factory.createWhileStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns WhileStatement

  • deprecated

    Use factory.createWithStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns WithStatement

  • deprecated

    Use factory.createYield or the factory supplied by your transformation context instead.

    Parameters

    Returns YieldExpression

  • deprecated

    Use factory.createYield or the factory supplied by your transformation context instead.

    Parameters

    Returns YieldExpression

  • decodedTextSpanIntersectsWith(start1: number, length1: number, start2: number, length2: number): boolean
  • Parameters

    • start1: number
    • length1: number
    • start2: number
    • length2: number

    Returns boolean

  • Parameters

    Returns string

  • Clears any EmitNode entries from parse-tree nodes.

    Parameters

    Returns void

  • escapeLeadingUnderscores(identifier: string): __String
  • Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like 'proto'

    Parameters

    • identifier: string

    Returns __String

  • findAncestor<T>(node: undefined | Node, callback: (element: Node) => element is T): T | undefined
  • findAncestor(node: undefined | Node, callback: (element: Node) => boolean | "quit"): Node | undefined
  • Iterates through the parent chain of a node and performs the callback on each parent until the callback returns a truthy value, then returns that value. If no such value is found, it applies the callback until the parent pointer is undefined or the callback returns "quit" At that point findAncestor returns undefined.

    Type parameters

    Parameters

    • node: undefined | Node
    • callback: (element: Node) => element is T
        • (element: Node): element is T
        • Parameters

          Returns element is T

    Returns T | undefined

  • Parameters

    • node: undefined | Node
    • callback: (element: Node) => boolean | "quit"
        • (element: Node): boolean | "quit"
        • Parameters

          Returns boolean | "quit"

    Returns Node | undefined

  • findConfigFile(searchPath: string, fileExists: (fileName: string) => boolean, configName?: string): string | undefined
  • Parameters

    • searchPath: string
    • fileExists: (fileName: string) => boolean
        • (fileName: string): boolean
        • Parameters

          • fileName: string

          Returns boolean

    • Optional configName: string

    Returns string | undefined

  • flattenDiagnosticMessageText(diag: undefined | string | DiagnosticMessageChain, newLine: string, indent?: number): string
  • Parameters

    Returns string

  • forEachChild<T>(node: Node, cbNode: (node: Node) => undefined | T, cbNodes?: (nodes: NodeArray<Node>) => undefined | T): T | undefined
  • Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise, embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned.

    remarks

    forEachChild must visit the children of a node in the order that they appear in the source code. The language service depends on this property to locate nodes by position.

    Type parameters

    • T

    Parameters

    • node: Node

      a given node to visit its children

    • cbNode: (node: Node) => undefined | T

      a callback to be invoked for all child nodes

        • (node: Node): undefined | T
        • Parameters

          Returns undefined | T

    • Optional cbNodes: (nodes: NodeArray<Node>) => undefined | T

      a callback to be invoked for embedded array

    Returns T | undefined

  • forEachLeadingCommentRange<U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U): U | undefined
  • forEachLeadingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined
  • Type parameters

    • U

    Parameters

    • text: string
    • pos: number
    • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U
        • (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean): U
        • Parameters

          • pos: number
          • end: number
          • kind: CommentKind
          • hasTrailingNewLine: boolean

          Returns U

    Returns U | undefined

  • Type parameters

    • T

    • U

    Parameters

    • text: string
    • pos: number
    • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U
        • (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T): U
        • Parameters

          • pos: number
          • end: number
          • kind: CommentKind
          • hasTrailingNewLine: boolean
          • state: T

          Returns U

    • state: T

    Returns U | undefined

  • forEachTrailingCommentRange<U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U): U | undefined
  • forEachTrailingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U, state: T): U | undefined
  • Type parameters

    • U

    Parameters

    • text: string
    • pos: number
    • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean) => U
        • (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean): U
        • Parameters

          • pos: number
          • end: number
          • kind: CommentKind
          • hasTrailingNewLine: boolean

          Returns U

    Returns U | undefined

  • Type parameters

    • T

    • U

    Parameters

    • text: string
    • pos: number
    • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T) => U
        • (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T): U
        • Parameters

          • pos: number
          • end: number
          • kind: CommentKind
          • hasTrailingNewLine: boolean
          • state: T

          Returns U

    • state: T

    Returns U | undefined

  • getAllJSDocTags<T>(node: Node, predicate: (tag: JSDocTag) => tag is T): readonly T[]
  • Gets all JSDoc tags that match a specified predicate

    Type parameters

    Parameters

    Returns readonly T[]

  • Gets all JSDoc tags of a specified kind

    Parameters

    Returns readonly JSDocTag[]

  • Given a set of options, returns the set of type directive names that should be included for this program automatically. This list could either come from the config file, or from enumerating the types root + initial secondary types lookup location. More type directives might appear in the program later as a result of loading actual source files; this list is only the set of defaults that are implicitly included.

    Parameters

    Returns string[]

  • Parameters

    Returns NodeFlags

  • Gets a custom text range to use when emitting comments.

    Parameters

    Returns TextRange

  • Parameters

    Returns readonly Diagnostic[]

  • Gets the constant value to emit for an expression representing an enum.

    Parameters

    Returns string | number | undefined

  • Returns CompilerOptions

  • Parameters

    • Optional newLineCharacter: string

    Returns FormatCodeSettings

  • Parameters

    Returns string

  • Get the path of the default library files (lib.d.ts) as distributed with the typescript node package. The functionality is not supported if the ts module is consumed outside of a node module.

    Parameters

    Returns string

  • Gets the effective type parameters. If the node was parsed in a JavaScript file, gets the type parameters from the @template tag from JSDoc.

    Returns readonly TypeParameterDeclaration[]

  • Gets the EmitHelpers of a node.

    Parameters

    Returns EmitHelper[] | undefined

  • deprecated

    Use factory.getGeneratedNameForNode or the factory supplied by your transformation context instead.

    Parameters

    • node: undefined | Node

    Returns Identifier

  • A function for determining if a given file is esm or cjs format, assuming modern node module resolution rules, as configured by the options parameter.

    Parameters

    • fileName: Path

      The normalized absolute path to check the format of (it need not exist on disk)

    • packageJsonInfoCache: undefined | PackageJsonInfoCache
    • host: ModuleResolutionHost

      The ModuleResolutionHost which can perform the filesystem lookups for package json data

    • options: CompilerOptions

      The compiler options to perform the analysis under - relevant options are moduleResolution and traceResolution

    Returns ESNext | CommonJS | undefined

    undefined if the path has no relevant implied format, ModuleKind.ESNext for esm format, and ModuleKind.CommonJS for cjs format

  • Gets the JSDoc augments tag for the node if present

    Parameters

    Returns JSDocAugmentsTag | undefined

  • Gets the JSDoc class tag for the node if present

    Parameters

    Returns JSDocClassTag | undefined

  • Gets the JSDoc deprecated tag for the node if present

    Parameters

    Returns JSDocDeprecatedTag | undefined

  • Gets the JSDoc enum tag for the node if present

    Parameters

    Returns JSDocEnumTag | undefined

  • Gets the JSDoc implements tags for the node if present

    Parameters

    Returns readonly JSDocImplementsTag[]

  • Parameters

    Returns JSDocOverrideTag | undefined

  • Gets the JSDoc parameter tags for the node if present.

    remarks

    Returns any JSDoc param tag whose name matches the provided parameter, whether a param tag on a containing function expression, or a param tag on a variable declaration whose initializer is the containing function. The tags closest to the node are returned first, so in the previous example, the param tag on the containing function expression would be first.

    For binding patterns, parameter tags are matched by position.

    Parameters

    Returns readonly JSDocParameterTag[]

  • Gets the JSDoc private tag for the node if present

    Parameters

    Returns JSDocPrivateTag | undefined

  • Gets the JSDoc protected tag for the node if present

    Parameters

    Returns JSDocProtectedTag | undefined

  • Gets the JSDoc public tag for the node if present

    Parameters

    Returns JSDocPublicTag | undefined

  • Gets the JSDoc protected tag for the node if present

    Parameters

    Returns JSDocReadonlyTag | undefined

  • Gets the JSDoc return tag for the node if present

    Parameters

    Returns JSDocReturnTag | undefined

  • Gets the return type node for the node if provided via JSDoc return tag or type tag.

    remarks

    getJSDocReturnTag just gets the whole JSDoc tag. This function gets the type from inside the braces, after the fat arrow, etc.

    Parameters

    Returns TypeNode | undefined

  • Get all JSDoc tags related to a node, including those on parent nodes.

    Parameters

    Returns readonly JSDocTag[]

  • Gets the JSDoc template tag for the node if present

    Parameters

    Returns JSDocTemplateTag | undefined

  • Gets the JSDoc this tag for the node if present

    Parameters

    Returns JSDocThisTag | undefined

  • Gets the type node for the node if provided via JSDoc.

    remarks

    The search includes any JSDoc param tag that relates to the provided parameter, for example a type tag on the parameter itself, or a param tag on a containing function expression, or a param tag on a variable declaration whose initializer is the containing function. The tags closest to the node are examined first, so in the previous example, the type tag directly on the node would be returned.

    Parameters

    Returns TypeNode | undefined

  • Gets the JSDoc type parameter tags for the node if present.

    remarks

    Returns any JSDoc template tag whose names match the provided parameter, whether a template tag on a containing function expression, or a template tag on a variable declaration whose initializer is the containing function. The tags closest to the node are returned first, so in the previous example, the template tag on the containing function expression would be first.

    Parameters

    Returns readonly JSDocTemplateTag[]

  • Gets the JSDoc type tag for the node if present and valid

    Parameters

    Returns JSDocTypeTag | undefined

  • getLeadingCommentRanges(text: string, pos: number): CommentRange[] | undefined
  • Parameters

    • text: string
    • pos: number

    Returns CommentRange[] | undefined

  • getMutableClone<T>(node: T): T
  • Creates a shallow, memberwise clone of a node for mutation with its pos, end, and parent set.

    NOTE: It is unsafe to change any properties of a Node that relate to its AST children, as those changes won't be captured with respect to transformations.

    deprecated

    Use an appropriate factory.update... method instead, use setCommentRange or setSourceMapRange, and avoid setting parent.

    Type parameters

    Parameters

    • node: T

    Returns T

  • getNodeMajorVersion(): number | undefined
  • Returns number | undefined

  • getOriginalNode(node: Node): Node
  • getOriginalNode<T>(node: Node, nodeTest: (node: Node) => node is T): T
  • getOriginalNode(node: undefined | Node): Node | undefined
  • getOriginalNode<T>(node: undefined | Node, nodeTest: (node: undefined | Node) => node is T): T | undefined
  • Parameters

    Returns Node

  • Type parameters

    Parameters

    • node: Node
    • nodeTest: (node: Node) => node is T
        • (node: Node): node is T
        • Parameters

          Returns node is T

    Returns T

  • Parameters

    • node: undefined | Node

    Returns Node | undefined

  • Type parameters

    Parameters

    • node: undefined | Node
    • nodeTest: (node: undefined | Node) => node is T
        • (node: undefined | Node): node is T
        • Parameters

          • node: undefined | Node

          Returns node is T

    Returns T | undefined

  • getOutputFileNames(commandLine: ParsedCommandLine, inputFileName: string, ignoreCase: boolean): readonly string[]
  • Parameters

    Returns readonly string[]

  • getParseTreeNode(node: undefined | Node): Node | undefined
  • getParseTreeNode<T>(node: undefined | T, nodeTest?: (node: Node) => node is T): T | undefined
  • Gets the original parse tree node for a node.

    Parameters

    • node: undefined | Node

      The original node.

    Returns Node | undefined

    The original parse tree node if found; otherwise, undefined.

  • Gets the original parse tree node for a node.

    Type parameters

    Parameters

    • node: undefined | T

      The original node.

    • Optional nodeTest: (node: Node) => node is T

      A callback used to ensure the correct type of parse tree node is returned.

        • (node: Node): node is T
        • Parameters

          Returns node is T

    Returns T | undefined

    The original parse tree node if found; otherwise, undefined.

  • getPositionOfLineAndCharacter(sourceFile: SourceFileLike, line: number, character: number): number
  • Parameters

    Returns number

  • getShebang(text: string): string | undefined
  • Optionally, get the shebang

    Parameters

    • text: string

    Returns string | undefined

  • Gets a custom text range to use when emitting source maps.

    Parameters

    Returns SourceMapRange

  • getSupportedCodeFixes(): string[]
  • Returns string[]

  • Parameters

    Returns SynthesizedComment[] | undefined

  • Parameters

    Returns SynthesizedComment[] | undefined

  • Gets the text of a jsdoc comment, flattening links to their text.

    Parameters

    Returns string | undefined

  • Gets the TextRange to use for source maps for a token of a node.

    Parameters

    Returns SourceMapRange | undefined

  • getTrailingCommentRanges(text: string, pos: number): CommentRange[] | undefined
  • Parameters

    • text: string
    • pos: number

    Returns CommentRange[] | undefined

  • getTsBuildInfoEmitOutputFilePath(options: CompilerOptions): string | undefined
  • Parameters

    Returns string | undefined

  • Parameters

    Returns Declaration | undefined

  • True if has initializer node attached to it.

    Parameters

    Returns node is HasExpressionInitializer

  • Parameters

    Returns string

  • Parameters

    Returns node is ArrayTypeNode

  • Parameters

    Returns node is ArrowFunction

  • Parameters

    Returns node is AsExpression

  • Parameters

    Returns node is AssertClause

  • Parameters

    Returns node is AssertEntry

  • Parameters

    Returns node is AssertionKey

  • Parameters

    Returns node is AsteriskToken

  • Parameters

    Returns node is AwaitExpression

  • Parameters

    Returns node is BigIntLiteral

  • Parameters

    Returns node is BinaryExpression

  • Parameters

    Returns node is BindingElement

  • Parameters

    Returns node is BindingName

  • Parameters

    Returns node is Block

  • Parameters

    Returns node is BreakStatement

  • Parameters

    Returns node is Bundle

  • Parameters

    Returns node is CallChain

  • Parameters

    Returns node is CallExpression

  • Parameters

    Returns node is CallLikeExpression

  • Parameters

    Returns node is CaseBlock

  • Parameters

    Returns node is CaseClause

  • Parameters

    Returns node is CatchClause

  • Parameters

    Returns node is ClassDeclaration

  • Parameters

    Returns node is ClassElement

  • Parameters

    Returns node is ClassExpression

  • isConstTypeReference(node: Node): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns node is ContinueStatement

  • Parameters

    Returns node is DebuggerStatement

  • Parameters

    Returns node is TypeScript.Decorator

  • Parameters

    Returns node is DefaultClause

  • Parameters

    Returns node is DeleteExpression

  • Parameters

    Returns node is DoStatement

  • Parameters

    Returns node is DotDotDotToken

  • Parameters

    Returns node is ElementAccessChain

  • Parameters

    Returns boolean

  • Parameters

    Returns node is EmptyStatement

  • Parameters

    Returns node is EntityName

  • Parameters

    Returns node is EnumDeclaration

  • Parameters

    Returns node is EnumMember

  • Parameters

    Returns node is ExportAssignment

  • Parameters

    Returns node is ExportDeclaration

  • Parameters

    Returns node is ExportSpecifier

  • Parameters

    Returns boolean

  • isExternalModuleNameRelative(moduleName: string): boolean
  • Parameters

    • moduleName: string

    Returns boolean

  • Parameters

    Returns node is ForInStatement

  • Parameters

    Returns node is ForOfStatement

  • Parameters

    Returns node is ForStatement

  • Parameters

    Returns node is FunctionExpression

  • Parameters

    • node: undefined | Node

    Returns node is SignatureDeclaration

  • Parameters

    Returns node is FunctionTypeNode

  • Parameters

    Returns node is HeritageClause

  • Parameters

    Returns node is Identifier

  • deprecated

    Use isMemberName instead.

    Parameters

    Returns node is MemberName

  • Parameters

    Returns boolean

  • isIdentifierStart(ch: number, languageVersion: undefined | ScriptTarget): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns node is IfStatement

  • Parameters

    Returns node is ImportClause

  • Parameters

    Returns node is ImportDeclaration

  • Parameters

    Returns node is ImportSpecifier

  • Parameters

    Returns node is ImportTypeNode

  • Parameters

    Returns node is InferTypeNode

  • Parameters

    • node: Node
    • lookInLabeledStatements: false

    Returns node is IterationStatement

  • Parameters

    • node: Node
    • lookInLabeledStatements: boolean

    Returns node is IterationStatement | LabeledStatement

  • Parameters

    Returns node is JSDoc

  • Parameters

    Returns node is JSDocAllType

  • Parameters

    Returns node is JSDocAugmentsTag

  • Parameters

    Returns node is JSDocAuthorTag

  • Parameters

    Returns node is JSDocCallbackTag

  • Parameters

    Returns node is JSDocClassTag

  • isJSDocCommentContainingNode(node: Node): boolean
  • True if node is of a kind that may contain comment text.

    Parameters

    Returns boolean

  • Parameters

    Returns node is JSDocDeprecatedTag

  • Parameters

    Returns node is JSDocEnumTag

  • Parameters

    Returns node is JSDocFunctionType

  • Parameters

    Returns node is JSDocImplementsTag

  • Parameters

    Returns node is JSDocLink

  • Parameters

    Returns node is JSDocLinkCode

  • Parameters

    Returns node is JSDocLinkPlain

  • Parameters

    Returns node is JSDocMemberName

  • Parameters

    Returns node is JSDocNameReference

  • Parameters

    Returns node is JSDocNamepathType

  • Parameters

    Returns node is JSDocNullableType

  • Parameters

    Returns node is JSDocOptionalType

  • Parameters

    Returns node is JSDocOverrideTag

  • Parameters

    Returns node is JSDocParameterTag

  • Parameters

    Returns node is JSDocPrivateTag

  • Parameters

    Returns node is JSDocPropertyTag

  • Parameters

    Returns node is JSDocProtectedTag

  • Parameters

    Returns node is JSDocPublicTag

  • Parameters

    Returns node is JSDocReadonlyTag

  • Parameters

    Returns node is JSDocReturnTag

  • Parameters

    Returns node is JSDocSeeTag

  • Parameters

    Returns node is JSDocSignature

  • Parameters

    Returns node is JSDocTemplateTag

  • Parameters

    Returns node is JSDocThisTag

  • Parameters

    Returns node is JSDocTypeLiteral

  • Parameters

    Returns node is JSDocTypeTag

  • Parameters

    Returns node is JSDocTypedefTag

  • Parameters

    Returns node is JSDocUnknownTag

  • Parameters

    Returns node is JSDocUnknownType

  • Parameters

    Returns node is JSDocVariadicType

  • Parameters

    Returns node is JsxAttribute

  • Parameters

    Returns node is JsxAttributes

  • Parameters

    Returns node is JsxClosingElement

  • Parameters

    Returns node is JsxClosingFragment

  • Parameters

    Returns node is JsxElement

  • Parameters

    Returns node is JsxExpression

  • Parameters

    Returns node is JsxFragment

  • Parameters

    Returns node is JsxOpeningElement

  • Parameters

    Returns node is JsxOpeningFragment

  • Parameters

    Returns node is JsxSpreadAttribute

  • Parameters

    Returns node is JsxText

  • Parameters

    Returns node is LabeledStatement

  • isLineBreak(ch: number): boolean
  • Parameters

    • ch: number

    Returns boolean

  • Parameters

    Returns node is LiteralExpression

  • Parameters

    Returns node is LiteralTypeNode

  • Parameters

    Returns node is MappedTypeNode

  • Parameters

    Returns node is MemberName

  • Parameters

    Returns node is MetaProperty

  • Parameters

    Returns node is MethodDeclaration

  • Parameters

    Returns node is MethodSignature

  • Parameters

    Returns node is MinusToken

  • Parameters

    Returns node is MissingDeclaration

  • Parameters

    Returns node is Modifier

  • Parameters

    Returns node is ModuleBlock

  • Parameters

    Returns node is ModuleDeclaration

  • Parameters

    Returns node is NamedExports

  • Parameters

    Returns node is NamedImports

  • Parameters

    Returns node is NamespaceExport

  • Parameters

    Returns node is NamespaceImport

  • Parameters

    Returns node is NewExpression

  • Parameters

    Returns node is NonNullChain

  • Parameters

    Returns node is NonNullExpression

  • isNullishCoalesce(node: Node): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns node is NumericLiteral

  • Parameters

    Returns node is OmittedExpression

  • Parameters

    Returns node is OptionalTypeNode

  • isParseTreeNode(node: Node): boolean
  • Gets a value indicating whether a node originated in the parse tree.

    Parameters

    • node: Node

      The node to test.

    Returns boolean

  • Parameters

    Returns node is PlusToken

  • Parameters

    Returns node is PrivateIdentifier

  • Parameters

    Returns node is PropertyAssignment

  • Parameters

    Returns node is PropertyName

  • Parameters

    Returns node is PropertySignature

  • Parameters

    Returns node is QualifiedName

  • Parameters

    Returns node is RestTypeNode

  • Parameters

    Returns node is ReturnStatement

  • Parameters

    Returns node is SpreadAssignment

  • Parameters

    Returns node is SpreadElement

  • Parameters

    Returns node is StringLiteral

  • Parameters

    Returns node is StringLiteralLike

  • Parameters

    Returns node is SwitchStatement

  • Parameters

    Returns node is TemplateExpression

  • Parameters

    Returns node is TemplateHead

  • Parameters

    Returns node is TemplateLiteral

  • Parameters

    Returns node is TemplateMiddle

  • Parameters

    Returns node is TemplateSpan

  • Parameters

    Returns node is TemplateTail

  • Parameters

    Returns node is ThisTypeNode

  • Parameters

    Returns node is ThrowStatement

  • isToken(n: Node): boolean
  • True if node is of some token syntax kind. For example, this is true for an IfKeyword but not for an IfStatement. Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.

    Parameters

    Returns boolean

  • True if kind is of some token syntax kind. For example, this is true for an IfKeyword but not for an IfStatement. Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.

    Parameters

    Returns boolean

  • Parameters

    Returns node is TryStatement

  • Parameters

    Returns node is TupleTypeNode

  • deprecated

    Use isTypeAssertionExpression instead.

    Parameters

    Returns node is TypeAssertion

  • Parameters

    Returns node is TypeAssertion

  • Parameters

    Returns node is TypeElement

  • Parameters

    Returns node is TypeLiteralNode

  • Node test that determines whether a node is a valid type node. This differs from the isPartOfTypeNode function which determines whether a node is part of a TypeNode.

    Parameters

    Returns node is TypeNode

  • Parameters

    Returns node is TypeOfExpression

  • Parameters

    Returns node is TypeOperatorNode

  • Parameters

    Returns node is TypePredicateNode

  • Parameters

    Returns node is TypeQueryNode

  • Parameters

    Returns node is TypeReferenceNode

  • Parameters

    Returns node is UnionTypeNode

  • Parameters

    Returns node is UnparsedNode

  • Parameters

    Returns node is UnparsedPrepend

  • Parameters

    Returns node is UnparsedSource

  • Parameters

    Returns node is UnparsedTextLike

  • Parameters

    Returns node is VariableStatement

  • Parameters

    Returns node is VoidExpression

  • Parameters

    Returns node is WhileStatement

  • isWhiteSpaceLike(ch: number): boolean
  • Parameters

    • ch: number

    Returns boolean

  • isWhiteSpaceSingleLine(ch: number): boolean
  • Does not include line breaks. For that, see isWhiteSpaceLike.

    Parameters

    • ch: number

    Returns boolean

  • Parameters

    Returns node is WithStatement

  • Parameters

    Returns node is YieldExpression

  • moveEmitHelpers(source: Node, target: Node, predicate: (helper: EmitHelper) => boolean): void
  • Moves matching emit helpers from a source node to a target node.

    Parameters

    Returns void

  • moveSyntheticComments<T>(node: T, original: Node): T
  • Type parameters

    Parameters

    • node: T
    • original: Node

    Returns T

  • parseCommandLine(commandLine: readonly string[], readFile?: (path: string) => undefined | string): ParsedCommandLine
  • Parameters

    • commandLine: readonly string[]
    • Optional readFile: (path: string) => undefined | string
        • (path: string): undefined | string
        • Parameters

          • path: string

          Returns undefined | string

    Returns ParsedCommandLine

  • parseConfigFileTextToJson(fileName: string, jsonText: string): { config?: any; error?: Diagnostic }
  • Parse the text of the tsconfig.json file

    Parameters

    • fileName: string

      The path to the config file

    • jsonText: string

      The text of the config file

    Returns { config?: any; error?: Diagnostic }

  • Parameters

    Returns EntityName | undefined

  • Parse the contents of a config file (tsconfig.json).

    Parameters

    • json: any

      The contents of the config file to parse

    • host: ParseConfigHost

      Instance of ParseConfigHost used to enumerate files in folder.

    • basePath: string

      A root directory to resolve relative path entries in the config file to. e.g. outDir

    • Optional existingOptions: CompilerOptions
    • Optional configFileName: string
    • Optional resolutionStack: Path[]
    • Optional extraFileExtensions: readonly FileExtensionInfo[]
    • Optional extendedConfigCache: Map<ExtendedConfigCacheEntry>
    • Optional existingWatchOptions: WatchOptions

    Returns ParsedCommandLine

  • Parse the contents of a config file (tsconfig.json).

    Parameters

    Returns ParsedCommandLine

  • Parse json text into SyntaxTree and return node and parse errors if any

    Parameters

    • fileName: string
    • sourceText: string

    Returns JsonSourceFile

  • preProcessFile(sourceText: string, readImportFiles?: boolean, detectJavaScriptImports?: boolean): PreProcessedFileInfo
  • Parameters

    • sourceText: string
    • Optional readImportFiles: boolean
    • Optional detectJavaScriptImports: boolean

    Returns PreProcessedFileInfo

  • readConfigFile(fileName: string, readFile: (path: string) => undefined | string): { config?: any; error?: Diagnostic }
  • Read tsconfig.json file

    Parameters

    • fileName: string

      The path to the config file

    • readFile: (path: string) => undefined | string
        • (path: string): undefined | string
        • Parameters

          • path: string

          Returns undefined | string

    Returns { config?: any; error?: Diagnostic }

  • readJsonConfigFile(fileName: string, readFile: (path: string) => undefined | string): TsConfigSourceFile
  • Read tsconfig.json file

    Parameters

    • fileName: string

      The path to the config file

    • readFile: (path: string) => undefined | string
        • (path: string): undefined | string
        • Parameters

          • path: string

          Returns undefined | string

    Returns TsConfigSourceFile

  • reduceEachLeadingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U, state: T, initial: U): U | undefined
  • Type parameters

    • T

    • U

    Parameters

    • text: string
    • pos: number
    • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U
        • (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U): U
        • Parameters

          • pos: number
          • end: number
          • kind: CommentKind
          • hasTrailingNewLine: boolean
          • state: T
          • memo: U

          Returns U

    • state: T
    • initial: U

    Returns U | undefined

  • reduceEachTrailingCommentRange<T, U>(text: string, pos: number, cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U, state: T, initial: U): U | undefined
  • Type parameters

    • T

    • U

    Parameters

    • text: string
    • pos: number
    • cb: (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U) => U
        • (pos: number, end: number, kind: CommentKind, hasTrailingNewLine: boolean, state: T, memo: U): U
        • Parameters

          • pos: number
          • end: number
          • kind: CommentKind
          • hasTrailingNewLine: boolean
          • state: T
          • memo: U

          Returns U

    • state: T
    • initial: U

    Returns U | undefined

  • Removes an EmitHelper from a node.

    Parameters

    Returns boolean

  • resolveTripleslashReference(moduleName: string, containingFile: string): string
  • Parameters

    • moduleName: string
    • containingFile: string

    Returns string

  • setCommentRange<T>(node: T, range: TextRange): T
  • Sets a custom text range to use when emitting comments.

    Type parameters

    Parameters

    Returns T

  • Sets the constant value to emit for an expression.

    Parameters

    Returns AccessExpression

  • setEmitFlags<T>(node: T, emitFlags: EmitFlags): T
  • Sets flags that control emit behavior of a node.

    Type parameters

    Parameters

    Returns T

  • setOriginalNode<T>(node: T, original: undefined | Node): T
  • Type parameters

    Parameters

    • node: T
    • original: undefined | Node

    Returns T

  • Sets a custom text range to use when emitting source maps.

    Type parameters

    Parameters

    Returns T

  • Type parameters

    Parameters

    Returns T

  • Type parameters

    Parameters

    Returns T

  • setTextRange<T>(range: T, location: undefined | TextRange): T
  • Type parameters

    Parameters

    Returns T

  • Sets the TextRange to use for source maps for a token of a node.

    Type parameters

    Parameters

    Returns T

  • Parameters

    Returns Expression

  • Parameters

    Returns Node

  • Type parameters

    Parameters

    • diagnostics: readonly T[]

    Returns SortedReadonlyArray<T>

  • symbolName(symbol: Symbol): string
  • Parameters

    Returns string

  • Parameters

    Returns boolean

  • textSpanContainsPosition(span: TextSpan, position: number): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns number

  • Parameters

    Returns TextSpan | undefined

  • textSpanIntersectsWith(span: TextSpan, start: number, length: number): boolean
  • Parameters

    • span: TextSpan
    • start: number
    • length: number

    Returns boolean

  • textSpanIntersectsWithPosition(span: TextSpan, position: number): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • textSpanIsEmpty(span: TextSpan): boolean
  • Parameters

    Returns boolean

  • Parameters

    Returns TextSpan | undefined

  • Parameters

    Returns boolean

  • Parameters

    Returns string | undefined

  • Transform one or more nodes using the supplied transformers.

    Type parameters

    Parameters

    • source: T | T[]

      A single Node or an array of Node objects.

    • transformers: TransformerFactory<T>[]

      An array of TransformerFactory callbacks used to process the transformation.

    • Optional compilerOptions: CompilerOptions

      Optional compiler options.

    Returns TransformationResult<T>

  • transpile(input: string, compilerOptions?: CompilerOptions, fileName?: string, diagnostics?: Diagnostic[], moduleName?: string): string
  • Parameters

    • input: string
    • Optional compilerOptions: CompilerOptions
    • Optional fileName: string
    • Optional diagnostics: Diagnostic[]
    • Optional moduleName: string

    Returns string

  • unescapeLeadingUnderscores(identifier: __String): string
  • Remove extra underscore from escaped identifier text content.

    Parameters

    • identifier: __String

      The escaped identifier text.

    Returns string

    The unescaped identifier text.

  • deprecated

    Use factory.updateArrayLiteralExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns ArrayLiteralExpression

  • deprecated

    Use factory.updateArrayTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns ArrayTypeNode

  • deprecated

    Use factory.updateAsExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns AsExpression

  • deprecated

    Use factory.updateAwaitExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns AwaitExpression

  • deprecated

    Use factory.updateBlock or the factory supplied by your transformation context instead.

    Parameters

    Returns Block

  • deprecated

    Use factory.updateBreakStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns BreakStatement

  • deprecated

    Use factory.updateBundle or the factory supplied by your transformation context instead.

    Parameters

    Returns Bundle

  • deprecated

    Use factory.updateCallExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns CallExpression

  • deprecated

    Use factory.updateCallChain or the factory supplied by your transformation context instead.

    Parameters

    Returns CallChain

  • deprecated

    Use factory.updateCaseBlock or the factory supplied by your transformation context instead.

    Parameters

    Returns CaseBlock

  • deprecated

    Use factory.updateCaseClause or the factory supplied by your transformation context instead.

    Parameters

    Returns CaseClause

  • deprecated

    Use factory.updateCatchClause or the factory supplied by your transformation context instead.

    Parameters

    Returns CatchClause

  • deprecated

    Use factory.updateCommaListExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns CommaListExpression

  • deprecated

    Use factory.updateComputedPropertyName or the factory supplied by your transformation context instead.

    Parameters

    Returns ComputedPropertyName

  • deprecated

    Use factory.updateContinueStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ContinueStatement

  • deprecated

    Use factory.updateDecorator or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeScript.Decorator

  • deprecated

    Use factory.updateDefaultClause or the factory supplied by your transformation context instead.

    Parameters

    Returns DefaultClause

  • deprecated

    Use factory.updateDeleteExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns DeleteExpression

  • deprecated

    Use factory.updateDoStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns DoStatement

  • deprecated

    Use factory.updateEnumMember or the factory supplied by your transformation context instead.

    Parameters

    Returns EnumMember

  • deprecated

    Use factory.updateExportSpecifier or the factory supplied by your transformation context instead.

    Parameters

    Returns ExportSpecifier

  • deprecated

    Use factory.updateExpressionStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ExpressionStatement

  • deprecated

    Use factory.updateForStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ForStatement

  • deprecated

    Use factory.updateIfStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns IfStatement

  • deprecated

    Use factory.updateImportClause or the factory supplied by your transformation context instead.

    Parameters

    Returns ImportClause

  • deprecated

    Use factory.updateImportSpecifier or the factory supplied by your transformation context instead.

    Parameters

    Returns ImportSpecifier

  • deprecated

    Use factory.updateImportTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns ImportTypeNode

  • deprecated

    Use factory.updateInferTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns InferTypeNode

  • deprecated

    Use factory.updateJsxAttributes or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxAttributes

  • deprecated

    Use factory.updateJsxExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxExpression

  • deprecated

    Use factory.updateJsxSpreadAttribute or the factory supplied by your transformation context instead.

    Parameters

    Returns JsxSpreadAttribute

  • updateJsxText(node: JsxText, text: string, containsOnlyTriviaWhiteSpaces?: boolean): JsxText
  • deprecated

    Use factory.updateJsxText or the factory supplied by your transformation context instead.

    Parameters

    • node: JsxText
    • text: string
    • Optional containsOnlyTriviaWhiteSpaces: boolean

    Returns JsxText

  • deprecated

    Use factory.updateLabelStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns LabeledStatement

  • deprecated

    Use factory.updateMetaProperty or the factory supplied by your transformation context instead.

    Parameters

    Returns MetaProperty

  • deprecated

    Use factory.updateModuleBlock or the factory supplied by your transformation context instead.

    Parameters

    Returns ModuleBlock

  • deprecated

    Use factory.updateNamedExports or the factory supplied by your transformation context instead.

    Parameters

    Returns NamedExports

  • deprecated

    Use factory.updateNamedImports or the factory supplied by your transformation context instead.

    Parameters

    Returns NamedImports

  • deprecated

    Use factory.updateNamespaceExport or the factory supplied by your transformation context instead.

    Parameters

    Returns NamespaceExport

  • deprecated

    Use factory.updateNamespaceImport or the factory supplied by your transformation context instead.

    Parameters

    Returns NamespaceImport

  • deprecated

    Use factory.updateNewExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns NewExpression

  • deprecated

    Use factory.updateNonNullChain or the factory supplied by your transformation context instead.

    Parameters

    Returns NonNullChain

  • deprecated

    Use factory.updateNonNullExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns NonNullExpression

  • deprecated

    Use factory.updateObjectBindingPattern or the factory supplied by your transformation context instead.

    Parameters

    Returns ObjectBindingPattern

  • deprecated

    Use factory.updateOptionalTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns OptionalTypeNode

  • deprecated

    Use factory.updateQualifiedName or the factory supplied by your transformation context instead.

    Parameters

    Returns QualifiedName

  • deprecated

    Use factory.updateRestTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns RestTypeNode

  • deprecated

    Use factory.updateReturnStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ReturnStatement

  • deprecated

    Use factory.updateSourceFile or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeScript.SourceFile

  • deprecated

    Use factory.updateSpreadExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns SpreadElement

  • deprecated

    Use factory.updateSpreadAssignment or the factory supplied by your transformation context instead.

    Parameters

    Returns SpreadAssignment

  • deprecated

    Use factory.updateExpressionStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ExpressionStatement

  • deprecated

    Use factory.updateSwitchStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns SwitchStatement

  • deprecated

    Use factory.updateThrowStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns ThrowStatement

  • deprecated

    Use factory.updateTryStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns TryStatement

  • deprecated

    Use factory.updateTypeAssertion or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeAssertion

  • deprecated

    Use factory.updateTypeLiteralNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeLiteralNode

  • deprecated

    Use factory.updateTypeOfExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeOfExpression

  • deprecated

    Use factory.updateTypeOperatorNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeOperatorNode

  • deprecated

    Use factory.updateTypeQueryNode or the factory supplied by your transformation context instead.

    Parameters

    Returns TypeQueryNode

  • deprecated

    Use factory.updateUnionTypeNode or the factory supplied by your transformation context instead.

    Parameters

    Returns UnionTypeNode

  • deprecated

    Use factory.updateVoidExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns VoidExpression

  • deprecated

    Use factory.updateWhileStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns WhileStatement

  • deprecated

    Use factory.updateWithStatement or the factory supplied by your transformation context instead.

    Parameters

    Returns WithStatement

  • deprecated

    Use factory.updateYieldExpression or the factory supplied by your transformation context instead.

    Parameters

    Returns YieldExpression

  • validateLocaleAndSetLanguage(locale: string, sys: { fileExists: any; getExecutingFilePath: any; readFile: any; resolvePath: any }, errors?: Push<Diagnostic>): void
  • Checks to see if the locale is in the appropriate format, and if it is, attempts to set the appropriate language.

    Parameters

    • locale: string
    • sys: { fileExists: any; getExecutingFilePath: any; readFile: any; resolvePath: any }
      • fileExists:function
        • fileExists(fileName: string): boolean
        • Parameters

          • fileName: string

          Returns boolean

      • getExecutingFilePath:function
        • getExecutingFilePath(): string
        • Returns string

      • readFile:function
        • readFile(fileName: string): undefined | string
        • Parameters

          • fileName: string

          Returns undefined | string

      • resolvePath:function
        • resolvePath(path: string): string
        • Parameters

          • path: string

          Returns string

    • Optional errors: Push<Diagnostic>

    Returns void

  • Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.

    Type parameters

    Parameters

    • node: T

      The Node whose children will be visited.

    • visitor: Visitor

      The callback used to visit each child.

    • context: TransformationContext

      A lexical environment context for the visitor.

    Returns T

  • Visits each child of a Node using the supplied visitor, possibly returning a new Node of the same kind in its place.

    Type parameters

    Parameters

    • node: undefined | T

      The Node whose children will be visited.

    • visitor: Visitor

      The callback used to visit each child.

    • context: TransformationContext

      A lexical environment context for the visitor.

    • Optional nodesVisitor: { <T>(nodes: NodeArray<T>, visitor: undefined | Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T>; <T>(nodes: undefined | NodeArray<T>, visitor: undefined | Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T> | undefined }
        • Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place.

          Type parameters

          Parameters

          • nodes: NodeArray<T>

            The NodeArray to visit.

          • visitor: undefined | Visitor

            The callback used to visit a Node.

          • Optional test: (node: Node) => boolean

            A node test to execute for each node.

              • (node: Node): boolean
              • Parameters

                Returns boolean

          • Optional start: number

            An optional value indicating the starting offset at which to start visiting.

          • Optional count: number

            An optional value indicating the maximum number of nodes to visit.

          Returns NodeArray<T>

        • Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place.

          Type parameters

          Parameters

          • nodes: undefined | NodeArray<T>

            The NodeArray to visit.

          • visitor: undefined | Visitor

            The callback used to visit a Node.

          • Optional test: (node: Node) => boolean

            A node test to execute for each node.

              • (node: Node): boolean
              • Parameters

                Returns boolean

          • Optional start: number

            An optional value indicating the starting offset at which to start visiting.

          • Optional count: number

            An optional value indicating the maximum number of nodes to visit.

          Returns NodeArray<T> | undefined

    • Optional tokenVisitor: Visitor

    Returns T | undefined

  • Resumes a suspended lexical environment and visits a function body, ending the lexical environment and merging hoisted declarations upon completion.

    Parameters

    Returns FunctionBody

  • Resumes a suspended lexical environment and visits a function body, ending the lexical environment and merging hoisted declarations upon completion.

    Parameters

    Returns FunctionBody | undefined

  • Resumes a suspended lexical environment and visits a concise body, ending the lexical environment and merging hoisted declarations upon completion.

    Parameters

    Returns ConciseBody

  • Visits an iteration body, adding any block-scoped variables required by the transformation.

    Parameters

    Returns Statement

  • Starts a new lexical environment and visits a statement list, ending the lexical environment and merging hoisted declarations upon completion.

    Parameters

    Returns NodeArray<Statement>

  • visitNode<T>(node: T, visitor: undefined | Visitor, test?: (node: Node) => boolean, lift?: (node: readonly Node[]) => T): T
  • visitNode<T>(node: undefined | T, visitor: undefined | Visitor, test?: (node: Node) => boolean, lift?: (node: readonly Node[]) => T): T | undefined
  • Visits a Node using the supplied visitor, possibly returning a new Node in its place.

    Type parameters

    Parameters

    • node: T

      The Node to visit.

    • visitor: undefined | Visitor

      The callback used to visit the Node.

    • Optional test: (node: Node) => boolean

      A callback to execute to verify the Node is valid.

        • (node: Node): boolean
        • Parameters

          Returns boolean

    • Optional lift: (node: readonly Node[]) => T

      An optional callback to execute to lift a NodeArray into a valid Node.

        • (node: readonly Node[]): T
        • Parameters

          • node: readonly Node[]

          Returns T

    Returns T

  • Visits a Node using the supplied visitor, possibly returning a new Node in its place.

    Type parameters

    Parameters

    • node: undefined | T

      The Node to visit.

    • visitor: undefined | Visitor

      The callback used to visit the Node.

    • Optional test: (node: Node) => boolean

      A callback to execute to verify the Node is valid.

        • (node: Node): boolean
        • Parameters

          Returns boolean

    • Optional lift: (node: readonly Node[]) => T

      An optional callback to execute to lift a NodeArray into a valid Node.

        • (node: readonly Node[]): T
        • Parameters

          • node: readonly Node[]

          Returns T

    Returns T | undefined

  • visitNodes<T>(nodes: NodeArray<T>, visitor: undefined | Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T>
  • visitNodes<T>(nodes: undefined | NodeArray<T>, visitor: undefined | Visitor, test?: (node: Node) => boolean, start?: number, count?: number): NodeArray<T> | undefined
  • Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place.

    Type parameters

    Parameters

    • nodes: NodeArray<T>

      The NodeArray to visit.

    • visitor: undefined | Visitor

      The callback used to visit a Node.

    • Optional test: (node: Node) => boolean

      A node test to execute for each node.

        • (node: Node): boolean
        • Parameters

          Returns boolean

    • Optional start: number

      An optional value indicating the starting offset at which to start visiting.

    • Optional count: number

      An optional value indicating the maximum number of nodes to visit.

    Returns NodeArray<T>

  • Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place.

    Type parameters

    Parameters

    • nodes: undefined | NodeArray<T>

      The NodeArray to visit.

    • visitor: undefined | Visitor

      The callback used to visit a Node.

    • Optional test: (node: Node) => boolean

      A node test to execute for each node.

        • (node: Node): boolean
        • Parameters

          Returns boolean

    • Optional start: number

      An optional value indicating the starting offset at which to start visiting.

    • Optional count: number

      An optional value indicating the maximum number of nodes to visit.

    Returns NodeArray<T> | undefined

Generated using TypeDoc